pub struct DowncastError<F: Value, T: Value> { /* private fields */ }
Expand description
An error representing a failed downcast.
Trait Implementations§
Source§impl<F: Clone + Value, T: Clone + Value> Clone for DowncastError<F, T>
impl<F: Clone + Value, T: Clone + Value> Clone for DowncastError<F, T>
Source§fn clone(&self) -> DowncastError<F, T>
fn clone(&self) -> DowncastError<F, T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<F: Value, T: Value> Error for DowncastError<F, T>
impl<F: Value, T: Value> Error for DowncastError<F, T>
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<F: Ord + Value, T: Ord + Value> Ord for DowncastError<F, T>
impl<F: Ord + Value, T: Ord + Value> Ord for DowncastError<F, T>
Source§fn cmp(&self, other: &DowncastError<F, T>) -> Ordering
fn cmp(&self, other: &DowncastError<F, T>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<F: PartialOrd + Value, T: PartialOrd + Value> PartialOrd for DowncastError<F, T>
impl<F: PartialOrd + Value, T: PartialOrd + Value> PartialOrd for DowncastError<F, T>
impl<F: Eq + Value, T: Eq + Value> Eq for DowncastError<F, T>
impl<F: Value, T: Value> StructuralPartialEq for DowncastError<F, T>
Auto Trait Implementations§
impl<F, T> Freeze for DowncastError<F, T>
impl<F, T> RefUnwindSafe for DowncastError<F, T>where
F: RefUnwindSafe,
T: RefUnwindSafe,
impl<F, T> Send for DowncastError<F, T>
impl<F, T> Sync for DowncastError<F, T>
impl<F, T> Unpin for DowncastError<F, T>
impl<F, T> UnwindSafe for DowncastError<F, T>where
F: UnwindSafe,
T: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more