Enum zerovec::ule::ZeroVecError
source · [−]pub enum ZeroVecError {
InvalidLength {
ty: &'static str,
len: usize,
},
ParseError {
ty: &'static str,
},
VarZeroVecFormatError,
}
Expand description
A generic error type to be used for decoding slices of ULE types
Variants
InvalidLength
Attempted to parse a buffer into a slice of the given ULE type but its length was not compatible
ParseError
Fields
ty: &'static str
The byte sequence provided for ty
failed to parse correctly
VarZeroVecFormatError
The byte buffer was not in the appropriate format for VarZeroVec
Implementations
Construct a parse error for the given type
Construct an “invalid length” error for the given type and length
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ZeroVecError
impl Send for ZeroVecError
impl Sync for ZeroVecError
impl Unpin for ZeroVecError
impl UnwindSafe for ZeroVecError
Blanket Implementations
Mutably borrows from an owned value. Read more