Searched refs:VarZeroVecFormatError (Results 1 – 3 of 3) sorted by relevance
8 pub enum VarZeroVecFormatError { enum15 impl core::error::Error for VarZeroVecFormatError {} implementation17 impl Display for VarZeroVecFormatError { implementation
5 use super::VarZeroVecFormatError;229 pub fn parse_bytes(slice: &'a [u8]) -> Result<Self, VarZeroVecFormatError> { in parse_bytes() argument241 .ok_or(VarZeroVecFormatError::Metadata)?; in parse_bytes()243 F::Len::parse_bytes_to_slice(len_bytes).map_err(|_| VarZeroVecFormatError::Metadata)?; in parse_bytes()247 .ok_or(VarZeroVecFormatError::Metadata)? in parse_bytes()252 .ok_or(VarZeroVecFormatError::Metadata)?; in parse_bytes()253 let len_u32 = u32::try_from(len).map_err(|_| VarZeroVecFormatError::Metadata); in parse_bytes()269 ) -> Result<Self, VarZeroVecFormatError> { in parse_bytes_with_length() argument284 .ok_or(VarZeroVecFormatError::Metadata)?; in parse_bytes_with_length()287 .ok_or(VarZeroVecFormatError::Metadata)?; in parse_bytes_with_length()[all …]
31 pub use error::VarZeroVecFormatError;