Lines Matching refs:FromBytes
3936 pub use zerocopy_derive::FromBytes;
4053 pub unsafe trait FromBytes: FromZeros { trait
5475 fn ref_from_prefix_suffix<T: FromBytes + KnownLayout + Immutable + ?Sized>( in ref_from_prefix_suffix()
5495 fn mut_from_prefix_suffix<T: FromBytes + IntoBytes + KnownLayout + ?Sized>( in mut_from_prefix_suffix()
5824 Self: FromBytes, in as_mut_bytes()
6187 Self: FromBytes, in as_bytes_mut()
6479 #[derive(Debug, Eq, PartialEq, FromBytes, IntoBytes, Unaligned, Immutable)]
7047 #[derive(FromBytes)] in test_read_io_with_padding_soundness()
7240 fn test<T: FromBytes + IntoBytes + Immutable + Debug + Eq + ?Sized, const N: usize>( in test_to_methods()
7297 #[derive(Debug, Eq, PartialEq, FromBytes, IntoBytes, Immutable)] in test_to_methods()
7326 #[derive(FromBytes, IntoBytes, Immutable)] in test_array()
7351 #[derive(IntoBytes, FromBytes, Unaligned)] in test_transparent_packed_generic_struct()
7359 assert_impl_all!(Foo<u32>: FromZeros, FromBytes, IntoBytes); in test_transparent_packed_generic_struct()
7362 #[derive(IntoBytes, FromBytes, Unaligned)] in test_transparent_packed_generic_struct()
7370 assert_impl_all!(Bar<u8, AU64>: FromZeros, FromBytes, IntoBytes, Unaligned); in test_transparent_packed_generic_struct()