Home
last modified time | relevance | path

Searched refs:IntoBytes (Results 1 – 18 of 18) sorted by relevance

/linux/rust/zerocopy/src/
H A Dimpls.rs32 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 Dsplit_at.rs420 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 Dmacros.rs86 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 Dlib.rs561 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 Dwrappers.rs116 #[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 Dbyteorder.rs525 …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 Dref.rs660 T: FromBytes + IntoBytes + KnownLayout + ?Sized,
776 T: IntoBytes,
844 T: FromBytes + IntoBytes + KnownLayout + Immutable + ?Sized,
H A Ddeprecated.rs155 T: FromBytes + IntoBytes + Immutable,
/linux/rust/zerocopy-derive/derive/
H A Dmod.rs46 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 Dinto_bytes.rs96 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 Dmacro_util.rs35 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 Dmod.rs861 IntoBytes,
H A Dmacros.rs225 (@assert_is_supported_trait IntoBytes) => {};
/linux/rust/kernel/
H A Dprelude.rs66 IntoBytes, //
72 IntoBytes, //
H A Dio.rs104 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 Dlib.rs126 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 Dutil.rs320 IntoBytes, enumerator
348 Trait::IntoBytes => "IntoBytes", in to_tokens()
369 | Trait::IntoBytes in to_tokens()
/linux/rust/zerocopy/src/pointer/
H A Dtransmute.rs24 FromBytes, Immutable, IntoBytes, Unalign,
338 Src: IntoBytes + ?Sized,