pub struct LengthError {
pub remaining: usize,
pub count: usize,
}
Expand description
A constant string overflowed its buffer.
Fields§
§remaining: usize
The remaining capacity of the buffer.
count: usize
The required amount of elements.
Trait Implementations§
Source§impl Debug for LengthError
impl Debug for LengthError
Source§impl Display for LengthError
impl Display for LengthError
Source§impl Error for LengthError
impl Error for LengthError
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<Infallible> for LengthError
impl From<Infallible> for LengthError
Source§fn from(_value: Infallible) -> Self
fn from(_value: Infallible) -> Self
Converts to this type from the input type.
Source§impl From<LengthError> for GenericDecodeError
impl From<LengthError> for GenericDecodeError
Source§fn from(value: LengthError) -> Self
fn from(value: LengthError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LengthError
impl PartialEq for LengthError
impl Eq for LengthError
impl StructuralPartialEq for LengthError
Auto Trait Implementations§
impl Freeze for LengthError
impl RefUnwindSafe for LengthError
impl Send for LengthError
impl Sync for LengthError
impl Unpin for LengthError
impl UnwindSafe for LengthError
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