pub enum TryGetIntegerError {
NotEnoughBytes(TryGetError),
InvalidLength(InvalidIntegerLength),
}Expand description
Error returned by variable-width integer readers.
Variants§
NotEnoughBytes(TryGetError)
Not enough bytes remained to read the requested value.
InvalidLength(InvalidIntegerLength)
The requested integer width was outside the supported 0..=8 range.
Trait Implementations§
Source§impl Clone for TryGetIntegerError
impl Clone for TryGetIntegerError
impl Copy for TryGetIntegerError
Source§impl Debug for TryGetIntegerError
impl Debug for TryGetIntegerError
Source§impl Display for TryGetIntegerError
impl Display for TryGetIntegerError
impl Eq for TryGetIntegerError
Source§impl Error for TryGetIntegerError
impl Error for TryGetIntegerError
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<InvalidIntegerLength> for TryGetIntegerError
impl From<InvalidIntegerLength> for TryGetIntegerError
Source§fn from(value: InvalidIntegerLength) -> Self
fn from(value: InvalidIntegerLength) -> Self
Converts to this type from the input type.
Source§impl From<TryGetError> for TryGetIntegerError
impl From<TryGetError> for TryGetIntegerError
Source§fn from(value: TryGetError) -> Self
fn from(value: TryGetError) -> Self
Converts to this type from the input type.
Source§impl From<TryGetIntegerError> for Error
Available on crate feature std only.
impl From<TryGetIntegerError> for Error
Available on crate feature
std only.Source§fn from(value: TryGetIntegerError) -> Self
fn from(value: TryGetIntegerError) -> Self
Converts to this type from the input type.
Source§impl Hash for TryGetIntegerError
impl Hash for TryGetIntegerError
Source§impl PartialEq for TryGetIntegerError
impl PartialEq for TryGetIntegerError
impl StructuralPartialEq for TryGetIntegerError
Auto Trait Implementations§
impl Freeze for TryGetIntegerError
impl RefUnwindSafe for TryGetIntegerError
impl Send for TryGetIntegerError
impl Sync for TryGetIntegerError
impl Unpin for TryGetIntegerError
impl UnsafeUnpin for TryGetIntegerError
impl UnwindSafe for TryGetIntegerError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToUtf8Bytes for T
impl<T> ToUtf8Bytes for T
Source§fn to_utf8bytes(&self) -> Utf8Bytes<Shared>
fn to_utf8bytes(&self) -> Utf8Bytes<Shared>
Available on crate features
alloc or std only.Source§fn to_compact_utf8bytes(&self) -> Utf8Bytes<Compact>
fn to_compact_utf8bytes(&self) -> Utf8Bytes<Compact>
Available on crate features
alloc or std only.