pub struct TryFromSuperclassError(/* private fields */);Expand description
The error type returend when a superclass isn’t an instance of a subclass.
Implementations§
Source§impl TryFromSuperclassError
impl TryFromSuperclassError
Sourcepub fn new(subclass: String) -> Self
pub fn new(subclass: String) -> Self
Returns a TryFromSuperclassError for the given subclass name.
Trait Implementations§
Source§impl Debug for TryFromSuperclassError
impl Debug for TryFromSuperclassError
Source§impl Display for TryFromSuperclassError
impl Display for TryFromSuperclassError
Source§impl Error for TryFromSuperclassError
impl Error for TryFromSuperclassError
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()
Auto Trait Implementations§
impl Freeze for TryFromSuperclassError
impl RefUnwindSafe for TryFromSuperclassError
impl Send for TryFromSuperclassError
impl Sync for TryFromSuperclassError
impl Unpin for TryFromSuperclassError
impl UnwindSafe for TryFromSuperclassError
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