zerocopy-derive 0.8.50

Custom derive for traits from the zerocopy crate
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
impl<T: Clone> ::zerocopy::util::macro_util::core_reexport::cmp::PartialEq for Foo<T>
where
    Self: ::zerocopy::IntoBytes + ::zerocopy::Immutable,
    Self: Sized,
{
    fn eq(&self, other: &Self) -> bool {
        ::zerocopy::util::macro_util::core_reexport::cmp::PartialEq::eq(
            ::zerocopy::IntoBytes::as_bytes(self),
            ::zerocopy::IntoBytes::as_bytes(other),
        )
    }
}
impl<T: Clone> ::zerocopy::util::macro_util::core_reexport::cmp::Eq for Foo<T>
where
    Self: ::zerocopy::IntoBytes + ::zerocopy::Immutable,
    Self: Sized,
{}