Searched refs:TryReadError (Results 1 – 2 of 2) sorted by relevance
| /linux/rust/zerocopy/src/ |
| H A D | error.rs | 940 pub type TryReadError<Src, Dst: ?Sized + TryFromBytes> = typedef 943 impl<Src, Dst: ?Sized + TryFromBytes> TryReadError<Src, Dst> { implementation 978 pub fn map_src<NewSrc>(self, f: impl FnOnce(Src) -> NewSrc) -> TryReadError<NewSrc, Dst> { in map_src() 981 Self::Size(e) => TryReadError::Size(e.map_src(f)), in map_src() 982 Self::Validity(e) => TryReadError::Validity(e.map_src(f)), in map_src()
|
| H A D | lib.rs | 3122 fn try_read_from_bytes(source: &[u8]) -> Result<Self, TryReadError<&[u8], Self>> in try_read_from_bytes() 3131 return Err(TryReadError::Size(e.with_dst())); in try_read_from_bytes() 3200 fn try_read_from_prefix(source: &[u8]) -> Result<(Self, &[u8]), TryReadError<&[u8], Self>> in try_read_from_prefix() 3209 return Err(TryReadError::Size(e.with_dst())); in try_read_from_prefix() 3279 fn try_read_from_suffix(source: &[u8]) -> Result<(&[u8], Self), TryReadError<&[u8], Self>> in try_read_from_suffix() 3288 return Err(TryReadError::Size(e.with_dst())); in try_read_from_suffix() 3349 ) -> Result<T, TryReadError<S, T>> { in try_read_from() 7097 Err(TryReadError::Size(_)) in test_try_from_bytes_try_read_from() 7101 Err(TryReadError::Size(_)) in test_try_from_bytes_try_read_from() 7105 Err(TryReadError::Size(_)) in test_try_from_bytes_try_read_from() [all …]
|