pub enum BoolError {
Sized(SizedError),
Invalid(BoolInvalid),
}Expand description
An error occurring when decoding a bool.
Variants§
Trait Implementations§
Source§impl Error for BoolError
impl Error for BoolError
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<BoolInvalid> for BoolError
impl From<BoolInvalid> for BoolError
Source§fn from(source: BoolInvalid) -> Self
fn from(source: BoolInvalid) -> Self
Converts to this type from the input type.
Source§impl From<SizedError> for BoolError
impl From<SizedError> for BoolError
Source§fn from(source: SizedError) -> Self
fn from(source: SizedError) -> Self
Converts to this type from the input type.
Source§impl FromReadError for BoolError
impl FromReadError for BoolError
Source§fn from_read_error<E: Debug + Display>(err: E) -> Self
fn from_read_error<E: Debug + Display>(err: E) -> Self
Forward an error produced by the
Reader.Auto Trait Implementations§
impl Freeze for BoolError
impl RefUnwindSafe for BoolError
impl Send for BoolError
impl Sync for BoolError
impl Unpin for BoolError
impl UnwindSafe for BoolError
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