pub struct BX(/* private fields */);
Expand description
The stupidest box error ever. It’s not even Send.
It has From
implementations for some libstd error types,
you can derive From<E>
for your own error types
with make_bxable!
Implementations§
Trait Implementations§
Source§impl Error for BX
impl Error for BX
Source§fn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + '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<AddrParseError> for BX
impl From<AddrParseError> for BX
Source§fn from(e: AddrParseError) -> Self
fn from(e: AddrParseError) -> Self
Converts to this type from the input type.
Source§impl From<FromUtf16Error> for BX
impl From<FromUtf16Error> for BX
Source§fn from(e: FromUtf16Error) -> Self
fn from(e: FromUtf16Error) -> Self
Converts to this type from the input type.
Source§impl From<FromUtf8Error> for BX
impl From<FromUtf8Error> for BX
Source§fn from(e: FromUtf8Error) -> Self
fn from(e: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<ParseCharError> for BX
impl From<ParseCharError> for BX
Source§fn from(e: ParseCharError) -> Self
fn from(e: ParseCharError) -> Self
Converts to this type from the input type.
Source§impl From<ParseFloatError> for BX
impl From<ParseFloatError> for BX
Source§fn from(e: ParseFloatError) -> Self
fn from(e: ParseFloatError) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for BX
impl From<ParseIntError> for BX
Source§fn from(e: ParseIntError) -> Self
fn from(e: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl From<SystemTimeError> for BX
impl From<SystemTimeError> for BX
Source§fn from(e: SystemTimeError) -> Self
fn from(e: SystemTimeError) -> Self
Converts to this type from the input type.
Source§impl From<TryFromIntError> for BX
impl From<TryFromIntError> for BX
Source§fn from(e: TryFromIntError) -> Self
fn from(e: TryFromIntError) -> Self
Converts to this type from the input type.
Source§impl From<TryFromSliceError> for BX
impl From<TryFromSliceError> for BX
Source§fn from(e: TryFromSliceError) -> Self
fn from(e: TryFromSliceError) -> Self
Converts to this type from the input type.
Source§impl From<TryRecvError> for BX
impl From<TryRecvError> for BX
Source§fn from(e: TryRecvError) -> Self
fn from(e: TryRecvError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BX
impl !RefUnwindSafe for BX
impl !Send for BX
impl !Sync for BX
impl Unpin for BX
impl !UnwindSafe for BX
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