Home
last modified time | relevance | path

Searched refs:TryCastError (Results 1 – 2 of 2) sorted by relevance

/linux/rust/zerocopy/src/
H A Derror.rs783 pub(crate) fn into(self) -> TryCastError<Src, Dst> in into()
788 Self::Alignment(e) => TryCastError::Alignment(e), in into()
789 Self::Size(e) => TryCastError::Size(e), in into()
871 pub type TryCastError<Src, Dst: ?Sized + TryFromBytes> = typedef
877 impl<Src, Dst: ?Sized + TryFromBytes> TryCastError<Src, Dst> { implementation
912 pub fn map_src<NewSrc>(self, f: impl FnOnce(Src) -> NewSrc) -> TryCastError<NewSrc, Dst> { in map_src()
914 Self::Alignment(e) => TryCastError::Alignment(e.map_src(f)), in map_src()
915 Self::Size(e) => TryCastError::Size(e.map_src(f)), in map_src()
916 Self::Validity(e) => TryCastError::Validity(e.map_src(f)), in map_src()
921 impl<Src, Dst: ?Sized + TryFromBytes> From<CastError<Src, Dst>> for TryCastError<Src, Dst> { implementation
H A Dlib.rs1878 fn try_ref_from_bytes(source: &[u8]) -> Result<&Self, TryCastError<&[u8], Self>> in try_ref_from_bytes()
2001 fn try_ref_from_prefix(source: &[u8]) -> Result<(&Self, &[u8]), TryCastError<&[u8], Self>> in try_ref_from_prefix()
2111 fn try_ref_from_suffix(source: &[u8]) -> Result<(&[u8], &Self), TryCastError<&[u8], Self>> in try_ref_from_suffix()
2205 fn try_mut_from_bytes(bytes: &mut [u8]) -> Result<&mut Self, TryCastError<&mut [u8], Self>> in try_mut_from_bytes()
2316 ) -> Result<(&mut Self, &mut [u8]), TryCastError<&mut [u8], Self>> in try_mut_from_prefix()
2416 ) -> Result<(&mut [u8], &mut Self), TryCastError<&mut [u8], Self>> in try_mut_from_suffix()
2522 ) -> Result<&Self, TryCastError<&[u8], Self>> in try_ref_from_bytes_with_elems()
2643 ) -> Result<(&Self, &[u8]), TryCastError<&[u8], Self>> in try_ref_from_prefix_with_elems()
2751 ) -> Result<(&[u8], &Self), TryCastError<&[u8], Self>> in try_ref_from_suffix_with_elems()
2847 ) -> Result<&mut Self, TryCastError<&mut [u8], Self>> in try_mut_from_bytes_with_elems()
[all …]