Struct drop_tracker::SomeDroppedError
source · pub struct SomeDroppedError<'a, K> {
pub dropped: &'a K,
}Expand description
Error returned when failing to assert that all tracked items are alive.
See DropTracker::fully_alive for more information and examples.
Fields§
§dropped: &'a KReference to the first key that was found to have been be dropped.
Trait Implementations§
source§impl<'a, K: Debug> Debug for SomeDroppedError<'a, K>
impl<'a, K: Debug> Debug for SomeDroppedError<'a, K>
source§impl<'a, K: Debug> Display for SomeDroppedError<'a, K>
impl<'a, K: Debug> Display for SomeDroppedError<'a, K>
source§impl<'a, K: Debug> Error for SomeDroppedError<'a, K>
impl<'a, K: Debug> Error for SomeDroppedError<'a, K>
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<'a, K: PartialEq> PartialEq<SomeDroppedError<'a, K>> for SomeDroppedError<'a, K>
impl<'a, K: PartialEq> PartialEq<SomeDroppedError<'a, K>> for SomeDroppedError<'a, K>
source§fn eq(&self, other: &SomeDroppedError<'a, K>) -> bool
fn eq(&self, other: &SomeDroppedError<'a, K>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.