pub struct BadElement(pub u8);
Tuple Fields§
§0: u8
Trait Implementations§
Source§impl Debug for BadElement
impl Debug for BadElement
Source§impl Display for BadElement
impl Display for BadElement
Source§impl Error for BadElement
impl Error for BadElement
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<BadElement> for DecodeError
impl From<BadElement> for DecodeError
Source§fn from(source: BadElement) -> Self
fn from(source: BadElement) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BadElement
impl RefUnwindSafe for BadElement
impl Send for BadElement
impl Sync for BadElement
impl Unpin for BadElement
impl UnwindSafe for BadElement
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