Enum vartyint::VartyIntError
source · pub enum VartyIntError {
EmptyBuffer,
NotEnoughBytes,
TooManyBytesForType,
}
Expand description
Error type
Variants§
EmptyBuffer
Attempted to read from an empty buffer. No bytes, so cannot return anything
NotEnoughBytes
There are not enough bytes for the integer.
TooManyBytesForType
Attempted to read an integer that is too small for the data
Trait Implementations§
source§impl Debug for VartyIntError
impl Debug for VartyIntError
source§impl Display for VartyIntError
impl Display for VartyIntError
source§impl Error for VartyIntError
impl Error for VartyIntError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 PartialEq for VartyIntError
impl PartialEq for VartyIntError
source§fn eq(&self, other: &VartyIntError) -> bool
fn eq(&self, other: &VartyIntError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for VartyIntError
impl StructuralEq for VartyIntError
impl StructuralPartialEq for VartyIntError
Auto Trait Implementations§
impl RefUnwindSafe for VartyIntError
impl Send for VartyIntError
impl Sync for VartyIntError
impl Unpin for VartyIntError
impl UnwindSafe for VartyIntError
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