pub struct InvalidIntegerLength(pub usize);Expand description
Error type indicating an invalid integer length was specified. This is used when attempting to read or write an integer with an invalid number of bytes.
Tuple Fields§
§0: usizeTrait Implementations§
Source§impl Clone for InvalidIntegerLength
impl Clone for InvalidIntegerLength
impl Copy for InvalidIntegerLength
Source§impl Debug for InvalidIntegerLength
impl Debug for InvalidIntegerLength
Source§impl Display for InvalidIntegerLength
impl Display for InvalidIntegerLength
impl Eq for InvalidIntegerLength
Source§impl Error for InvalidIntegerLength
impl Error for InvalidIntegerLength
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<InvalidIntegerLength> for Error
Available on crate feature std only.
impl From<InvalidIntegerLength> for Error
Available on crate feature
std only.Source§fn from(value: InvalidIntegerLength) -> Self
fn from(value: InvalidIntegerLength) -> Self
Converts to this type from the input type.
Source§impl From<InvalidIntegerLength> for TryPutIntegerError
impl From<InvalidIntegerLength> for TryPutIntegerError
Source§fn from(value: InvalidIntegerLength) -> Self
fn from(value: InvalidIntegerLength) -> Self
Converts to this type from the input type.
Source§impl Hash for InvalidIntegerLength
impl Hash for InvalidIntegerLength
Source§impl PartialEq for InvalidIntegerLength
impl PartialEq for InvalidIntegerLength
impl StructuralPartialEq for InvalidIntegerLength
Auto Trait Implementations§
impl Freeze for InvalidIntegerLength
impl RefUnwindSafe for InvalidIntegerLength
impl Send for InvalidIntegerLength
impl Sync for InvalidIntegerLength
impl Unpin for InvalidIntegerLength
impl UnsafeUnpin for InvalidIntegerLength
impl UnwindSafe for InvalidIntegerLength
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