| 1 |
impl<T: Clone> ::zerocopy::util::macro_util::core_reexport::hash::Hash for Foo<T> |
| 2 |
where |
| 3 |
Self: ::zerocopy::IntoBytes + ::zerocopy::Immutable, |
| 4 |
Self: Sized, |
| 5 |
{ |
| 6 |
fn hash<H: ::zerocopy::util::macro_util::core_reexport::hash::Hasher>( |
| 7 |
&self, |
| 8 |
state: &mut H, |
| 9 |
) { |
| 10 |
::zerocopy::util::macro_util::core_reexport::hash::Hasher::write( |
| 11 |
state, |
| 12 |
::zerocopy::IntoBytes::as_bytes(self), |
| 13 |
) |
| 14 |
} |
| 15 |
fn hash_slice<H: ::zerocopy::util::macro_util::core_reexport::hash::Hasher>( |
| 16 |
data: &[Self], |
| 17 |
state: &mut H, |
| 18 |
) { |
| 19 |
::zerocopy::util::macro_util::core_reexport::hash::Hasher::write( |
| 20 |
state, |
| 21 |
::zerocopy::IntoBytes::as_bytes(data), |
| 22 |
) |
| 23 |
} |
| 24 |
} |