pub struct DebugIgnore<T>(pub T);
Expand description
A newtype wrapper that causes this field to be ignored while being debugged.
Similar to #[derivative(ignore)]
from the derivative
crate, but avoids an extra dependency.
Tuple Fields§
§0: T
Trait Implementations§
Source§impl<T: Clone> Clone for DebugIgnore<T>
impl<T: Clone> Clone for DebugIgnore<T>
Source§fn clone(&self) -> DebugIgnore<T>
fn clone(&self) -> DebugIgnore<T>
Returns a duplicate 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<T> Debug for DebugIgnore<T>
impl<T> Debug for DebugIgnore<T>
Source§impl<T> Deref for DebugIgnore<T>
impl<T> Deref for DebugIgnore<T>
Source§impl<T> DerefMut for DebugIgnore<T>
impl<T> DerefMut for DebugIgnore<T>
Source§impl<T: Hash> Hash for DebugIgnore<T>
impl<T: Hash> Hash for DebugIgnore<T>
Source§impl<T: Ord> Ord for DebugIgnore<T>
impl<T: Ord> Ord for DebugIgnore<T>
Source§fn cmp(&self, other: &DebugIgnore<T>) -> Ordering
fn cmp(&self, other: &DebugIgnore<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<T: PartialEq> PartialEq for DebugIgnore<T>
impl<T: PartialEq> PartialEq for DebugIgnore<T>
Source§impl<T: PartialOrd> PartialOrd for DebugIgnore<T>
impl<T: PartialOrd> PartialOrd for DebugIgnore<T>
impl<T: Copy> Copy for DebugIgnore<T>
impl<T: Eq> Eq for DebugIgnore<T>
impl<T> StructuralPartialEq for DebugIgnore<T>
Auto Trait Implementations§
impl<T> Freeze for DebugIgnore<T>where
T: Freeze,
impl<T> RefUnwindSafe for DebugIgnore<T>where
T: RefUnwindSafe,
impl<T> Send for DebugIgnore<T>where
T: Send,
impl<T> Sync for DebugIgnore<T>where
T: Sync,
impl<T> Unpin for DebugIgnore<T>where
T: Unpin,
impl<T> UnwindSafe for DebugIgnore<T>where
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<'a, T> DefaultFeatures<'a> for T
impl<'a, T> DefaultFeatures<'a> for T
Source§fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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 moreSource§impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
Source§fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.