pub enum AnyFnError {
Borrow(BorrowError),
BorrowMut(BorrowMutError),
Downcast,
}
Expand description
An error.
Variants§
Borrow(BorrowError)
A borrow failure.
BorrowMut(BorrowMutError)
A mutable borrow failure.
Downcast
An object downcast failure.
Trait Implementations§
Source§impl Debug for AnyFnError
impl Debug for AnyFnError
Source§impl Display for AnyFnError
impl Display for AnyFnError
Source§impl Error for AnyFnError
impl Error for AnyFnError
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<BorrowError> for AnyFnError
impl From<BorrowError> for AnyFnError
Source§fn from(error: BorrowError) -> Self
fn from(error: BorrowError) -> Self
Converts to this type from the input type.
Source§impl From<BorrowMutError> for AnyFnError
impl From<BorrowMutError> for AnyFnError
Source§fn from(error: BorrowMutError) -> Self
fn from(error: BorrowMutError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AnyFnError
impl RefUnwindSafe for AnyFnError
impl Send for AnyFnError
impl Sync for AnyFnError
impl Unpin for AnyFnError
impl UnwindSafe for AnyFnError
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