pub enum TlfParseError {
TlfLengthOverflow,
TlfReserved,
TlfLengthUnderflow,
TlfNextByteTypeMismatch,
TlfInvalidTy,
}
Expand description
Error type used when parsing a TypeLengthField
Variants§
TlfLengthOverflow
The length field of a TLF overflowed
TlfReserved
The TLF uses values reserved for future usage
TlfLengthUnderflow
The length field of a TLF underflowed
TlfNextByteTypeMismatch
The type field of a byte following the first TLF byte isn’t set to 000
TlfInvalidTy
The TLF’s type field contains an invalid value
Trait Implementations§
Source§impl Clone for TlfParseError
impl Clone for TlfParseError
Source§fn clone(&self) -> TlfParseError
fn clone(&self) -> TlfParseError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TlfParseError
impl Debug for TlfParseError
Source§impl Display for TlfParseError
impl Display for TlfParseError
Source§impl Error for TlfParseError
Available on crate feature std
only.
impl Error for TlfParseError
Available on crate feature
std
only.1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<TlfParseError> for ParseError
impl From<TlfParseError> for ParseError
Source§fn from(x: TlfParseError) -> Self
fn from(x: TlfParseError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TlfParseError
impl PartialEq for TlfParseError
impl Eq for TlfParseError
impl StructuralPartialEq for TlfParseError
Auto Trait Implementations§
impl Freeze for TlfParseError
impl RefUnwindSafe for TlfParseError
impl Send for TlfParseError
impl Sync for TlfParseError
impl Unpin for TlfParseError
impl UnwindSafe for TlfParseError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more