| 1 |
#[allow( |
| 2 |
deprecated, |
| 3 |
private_bounds, |
| 4 |
non_local_definitions, |
| 5 |
non_camel_case_types, |
| 6 |
non_upper_case_globals, |
| 7 |
non_snake_case, |
| 8 |
non_ascii_idents, |
| 9 |
clippy::missing_inline_in_public_items, |
| 10 |
)] |
| 11 |
#[deny(ambiguous_associated_items)] |
| 12 |
#[automatically_derived] |
| 13 |
const _: () = { |
| 14 |
unsafe impl ::zerocopy::TryFromBytes for Foo { |
| 15 |
fn only_derive_is_allowed_to_implement_this_trait() {} |
| 16 |
fn is_bit_valid( |
| 17 |
mut candidate: ::zerocopy::Maybe<Self>, |
| 18 |
) -> ::zerocopy::util::macro_util::core_reexport::primitive::bool { |
| 19 |
true |
| 20 |
} |
| 21 |
} |
| 22 |
}; |
| 23 |
#[allow( |
| 24 |
deprecated, |
| 25 |
private_bounds, |
| 26 |
non_local_definitions, |
| 27 |
non_camel_case_types, |
| 28 |
non_upper_case_globals, |
| 29 |
non_snake_case, |
| 30 |
non_ascii_idents, |
| 31 |
clippy::missing_inline_in_public_items, |
| 32 |
)] |
| 33 |
#[deny(ambiguous_associated_items)] |
| 34 |
#[automatically_derived] |
| 35 |
const _: () = { |
| 36 |
unsafe impl ::zerocopy::FromZeros for Foo { |
| 37 |
fn only_derive_is_allowed_to_implement_this_trait() {} |
| 38 |
} |
| 39 |
}; |