| /linux/rust/zerocopy/src/ |
| H A D | impls.rs | 32 unsafe_impl!((): Immutable, TryFromBytes, FromZeros, FromBytes, IntoBytes, Unaligned); 68 unsafe_impl!(u8: Immutable, TryFromBytes, FromZeros, FromBytes, IntoBytes, Unaligned); 69 unsafe_impl!(i8: Immutable, TryFromBytes, FromZeros, FromBytes, IntoBytes, Unaligned); 71 unsafe_impl!(u16: Immutable, TryFromBytes, FromZeros, FromBytes, IntoBytes); 72 unsafe_impl!(i16: Immutable, TryFromBytes, FromZeros, FromBytes, IntoBytes); 73 unsafe_impl!(u32: Immutable, TryFromBytes, FromZeros, FromBytes, IntoBytes); 74 unsafe_impl!(i32: Immutable, TryFromBytes, FromZeros, FromBytes, IntoBytes); 75 unsafe_impl!(u64: Immutable, TryFromBytes, FromZeros, FromBytes, IntoBytes); 76 unsafe_impl!(i64: Immutable, TryFromBytes, FromZeros, FromBytes, IntoBytes); 77 unsafe_impl!(u128: Immutable, TryFromBytes, FromZeros, FromBytes, IntoBytes); [all …]
|
| H A D | split_at.rs | 420 T: IntoBytes, in via_into_bytes() argument 662 T: IntoBytes, in via_into_bytes() argument 855 T: IntoBytes, in via_into_bytes() argument 958 use crate::{FromBytes, Immutable, IntoBytes, KnownLayout, SplitAt}; in test_split_at() 960 #[derive(FromBytes, KnownLayout, SplitAt, IntoBytes, Immutable, Debug)] in test_split_at() 1005 use crate::{FromBytes, Immutable, IntoBytes, KnownLayout, SplitAt}; in test_split_at_overlapping() 1051 use crate::{FromBytes, Immutable, IntoBytes, KnownLayout, SplitAt}; in test_split_at_via_methods() 1052 #[derive(FromBytes, KnownLayout, SplitAt, IntoBytes, Immutable, Debug)] in test_split_at_via_methods() 1074 use crate::{FromBytes, Immutable, IntoBytes, KnownLayout, SplitAt, Unaligned}; in test_split_at_via_unaligned() 1075 #[derive(FromBytes, KnownLayout, SplitAt, IntoBytes, Immutable, Unaligned)] in test_split_at_via_unaligned()
|
| H A D | macros.rs | 86 Src: $crate::IntoBytes, 170 Src: $crate::IntoBytes, 358 struct AssertSrcIsIntoBytes<'a, T: ?::core::marker::Sized + $crate::IntoBytes>(&'a T); 1087 unsafe impl $(<$($tyvar),*>)? $crate::IntoBytes for $name$(<$($tyvar),*>)? 1090 $($tuple_field_ty: $crate::IntoBytes,)* 1094 $($field_ty: $crate::IntoBytes,)* 1223 unsafe impl $crate::IntoBytes for $name 1226 $field_ty: $crate::IntoBytes, 1264 #[derive(KnownLayout, Immutable, FromBytes, IntoBytes, PartialEq, Debug)] 1287 #[derive(IntoBytes)] in test_transmute() [all …]
|
| H A D | lib.rs | 561 use {FromZeros as FromZeroes, IntoBytes as AsBytes, Ref as LayoutVerified}; 2207 Self: KnownLayout + IntoBytes, in try_mut_from_bytes() argument 2318 Self: KnownLayout + IntoBytes, in try_mut_from_prefix() argument 2418 Self: KnownLayout + IntoBytes, in try_mut_from_suffix() argument 2849 Self: KnownLayout<PointerMetadata = usize> + IntoBytes, in try_mut_from_bytes_with_elems() 2960 Self: KnownLayout<PointerMetadata = usize> + IntoBytes, in try_mut_from_prefix_with_elems() 3060 Self: KnownLayout<PointerMetadata = usize> + IntoBytes, in try_mut_from_suffix_with_elems() 3318 fn try_mut_from_prefix_suffix<T: IntoBytes + TryFromBytes + KnownLayout + ?Sized>( in try_mut_from_prefix_suffix() 4447 Self: IntoBytes + KnownLayout, in mut_from_bytes() 4540 Self: IntoBytes + KnownLayout, in mut_from_prefix() [all …]
|
| H A D | wrappers.rs | 116 #[cfg_attr(any(feature = "derive", test), derive(Immutable, FromBytes, IntoBytes, Unaligned))] 158 impl_or_verify!(T: IntoBytes => IntoBytes for Unalign<T>); 680 unsafe_impl!(T: ?Sized + IntoBytes => IntoBytes for ReadOnly<T>);
|
| H A D | byteorder.rs | 525 …tr(any(feature = "derive", test), derive(KnownLayout, Immutable, FromBytes, IntoBytes, Unaligned))] 544 impl_or_verify!(O => IntoBytes for $name<O>); 1057 trait Native: Arbitrary + FromBytes + IntoBytes + Immutable + Copy + PartialEq + Debug { 1102 FromBytes + IntoBytes + Immutable + Copy + AsRef<[u8]> + AsMut<[u8]> + Debug + Default + Eq 1109 FromBytes + IntoBytes + Unaligned + Copy + Eq + Debug + Hash + From<Self::Native>
|
| H A D | ref.rs | 660 T: FromBytes + IntoBytes + KnownLayout + ?Sized, 776 T: IntoBytes, 844 T: FromBytes + IntoBytes + KnownLayout + Immutable + ?Sized,
|
| H A D | deprecated.rs | 155 T: FromBytes + IntoBytes + Immutable,
|
| /linux/rust/zerocopy-derive/derive/ |
| H A D | mod.rs | 46 Self: #zerocopy_crate::IntoBytes + #zerocopy_crate::Immutable, in derive_hash() 50 #core::hash::Hasher::write(state, #zerocopy_crate::IntoBytes::as_bytes(self)) in derive_hash() 54 #core::hash::Hasher::write(state, #zerocopy_crate::IntoBytes::as_bytes(data)) in derive_hash() 74 Self: #zerocopy_crate::IntoBytes + #zerocopy_crate::Immutable, in derive_eq() 79 #zerocopy_crate::IntoBytes::as_bytes(self), in derive_eq() 80 #zerocopy_crate::IntoBytes::as_bytes(other), in derive_eq() 87 Self: #zerocopy_crate::IntoBytes + #zerocopy_crate::Immutable, in derive_eq()
|
| H A D | into_bytes.rs | 96 Ok(ImplBlockBuilder::new(ctx, strct, Trait::IntoBytes, field_bounds) in derive_into_bytes_struct() 111 Ok(ImplBlockBuilder::new(ctx, enm, Trait::IntoBytes, FieldBounds::ALL_SELF) in derive_into_bytes_enum() 160 let impl_block = ImplBlockBuilder::new(ctx, unn, Trait::IntoBytes, FieldBounds::ALL_SELF) in derive_into_bytes_union()
|
| /linux/rust/zerocopy/src/util/ |
| H A D | macro_util.rs | 35 FromBytes, Immutable, IntoBytes, KnownLayout, Ptr, ReadOnly, TryFromBytes, ValidityError, 527 Src: IntoBytes, in try_transmute() argument 567 Self::Src: IntoBytes + Immutable + KnownLayout, in try_transmute_ref() 585 Src: IntoBytes + Immutable + KnownLayout + ?Sized, 628 Self::Src: IntoBytes, in try_transmute_mut() argument 646 Src: FromBytes + IntoBytes + KnownLayout + ?Sized, 647 Dst: TryFromBytes + IntoBytes + KnownLayout + ?Sized, 756 Src: IntoBytes + Immutable, in try_transmute_ref() 813 Src: FromBytes + IntoBytes, in transmute_mut() argument 814 Dst: FromBytes + IntoBytes, in transmute_mut() argument [all …]
|
| H A D | mod.rs | 861 IntoBytes,
|
| H A D | macros.rs | 225 (@assert_is_supported_trait IntoBytes) => {};
|
| /linux/rust/kernel/ |
| H A D | prelude.rs | 66 IntoBytes, // 72 IntoBytes, //
|
| H A D | io.rs | 104 unsafe impl<const SIZE: usize> IntoBytes for Region<SIZE> { 324 fn copy_write<T: IntoBytes>(view: Self::View<'_, T>, value: T) { in copy_write() 467 Self::Target: FromBytes + IntoBytes, in try_cast() argument 468 U: FromBytes + IntoBytes, in try_cast() argument 578 Self::Target: Sized + IntoBytes, in copy_write() argument 1416 fn copy_write<T: IntoBytes>(view: Self::View<'_, T>, value: T) { in copy_write() 1607 fn copy_write<T: IntoBytes>(view: Self::View<'_, T>, value: T) { in copy_write()
|
| /linux/rust/zerocopy-derive/ |
| H A D | lib.rs | 126 derive!(IntoBytes => derive_into_bytes => crate::derive::into_bytes::derive_into_bytes); 147 (crate::derive::into_bytes::derive_into_bytes, Trait::IntoBytes), in most_traits()
|
| H A D | util.rs | 320 IntoBytes, enumerator 348 Trait::IntoBytes => "IntoBytes", in to_tokens() 369 | Trait::IntoBytes in to_tokens()
|
| /linux/rust/zerocopy/src/pointer/ |
| H A D | transmute.rs | 24 FromBytes, Immutable, IntoBytes, Unalign, 338 Src: IntoBytes + ?Sized,
|