Home
last modified time | relevance | path

Searched refs:AlignmentError (Results 1 – 8 of 8) sorted by relevance

/external/rust/android-crates-io/crates/zerocopy/src/
Derror.rs163 impl<Src, Dst: ?Sized + Unaligned, S, V> From<ConvertError<AlignmentError<Src, Dst>, S, V>>
199 fn from(err: ConvertError<AlignmentError<Src, Dst>, S, V>) -> ConvertError<Infallible, S, V> { in from()
247 pub struct AlignmentError<Src, Dst: ?Sized> { struct
257 impl<Src, Dst: ?Sized> AlignmentError<Src, Dst> { argument
274 pub(crate) fn with_src<NewSrc>(self, new_src: NewSrc) -> AlignmentError<NewSrc, Dst> { in with_src()
278 AlignmentError { src: new_src, dst: SendSyncPhantomData::default() } in with_src()
302 pub fn map_src<NewSrc>(self, f: impl FnOnce(Src) -> NewSrc) -> AlignmentError<NewSrc, Dst> { in map_src()
303 AlignmentError { src: f(self.src), dst: SendSyncPhantomData::default() } in map_src()
341 impl<Src, Dst: ?Sized + Unaligned> From<AlignmentError<Src, Dst>> for Infallible {
343 fn from(_: AlignmentError<Src, Dst>) -> Infallible { in from()
[all …]
Dwrappers.rs190 pub fn try_deref(&self) -> Result<&T, AlignmentError<&Self, T>> { in try_deref()
207 pub fn try_deref_mut(&mut self) -> Result<&mut T, AlignmentError<&mut Self, T>> { in try_deref_mut()
620 assert!(matches!(u.t.try_deref(), Err(AlignmentError { .. }))); in test_unalign()
621 assert!(matches!(u.t.try_deref_mut(), Err(AlignmentError { .. }))); in test_unalign()
/external/rust/android-crates-io/crates/pdl-compiler/src/backends/rust_no_allocation/
Dpacket_serializer.rs138 return Err(SerializeError::AlignmentError); in generate_packet_serializer()
150 return Err(SerializeError::AlignmentError); in generate_packet_serializer()
169 return Err(SerializeError::AlignmentError); in generate_packet_serializer()
Dpreamble.rs176 AlignmentError, enumerator
/external/rust/android-crates-io/crates/zerocopy/src/pointer/
Dinner.rs16 AlignmentError, CastError, KnownLayout, PointerMetadata, SizeError,
437 let err = unsafe { AlignmentError::<_, U>::new_unchecked(self) }; in try_cast_into()
Dptr.rs18 AlignmentError, CastError, CastType, KnownLayout, SizeError, TryFromBytes, ValidityError,
645 ) -> Result<Ptr<'a, T, (I::Aliasing, Aligned, I::Validity)>, AlignmentError<Self, T>> in bikeshed_try_into_aligned()
/external/rust/android-crates-io/crates/zerocopy/src/util/
Dmod.rs24 error::AlignmentError,
553 pub(crate) fn validate_aligned_to<T: AsAddress, U>(t: T) -> Result<(), AlignmentError<(), U>> { in validate_aligned_to() argument
563 Err(unsafe { AlignmentError::new_unchecked(()) }) in validate_aligned_to()
/external/flatbuffers/rust/flexbuffers/src/reader/
Dmod.rs69 AlignmentError, enumerator
335 Err(Error::AlignmentError) in get_slice()