Struct x_core::DebugIgnore
source · 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 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<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<DebugIgnore<T>> for DebugIgnore<T>
impl<T: PartialEq> PartialEq<DebugIgnore<T>> for DebugIgnore<T>
source§fn eq(&self, other: &DebugIgnore<T>) -> bool
fn eq(&self, other: &DebugIgnore<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T: PartialOrd> PartialOrd<DebugIgnore<T>> for DebugIgnore<T>
impl<T: PartialOrd> PartialOrd<DebugIgnore<T>> for DebugIgnore<T>
source§fn partial_cmp(&self, other: &DebugIgnore<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &DebugIgnore<T>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<T: Copy> Copy for DebugIgnore<T>
impl<T: Eq> Eq for DebugIgnore<T>
impl<T> StructuralEq for DebugIgnore<T>
impl<T> StructuralPartialEq for DebugIgnore<T>
Auto Trait Implementations§
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§
§impl<'a, T> DefaultFeatures<'a> for Twhere
T: 'a + Send + Sync + Clone,
impl<'a, T> DefaultFeatures<'a> for Twhere T: 'a + Send + Sync + Clone,
§fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a> + 'a, Global>
fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a> + 'a, Global>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.§fn self_address_mut(&mut self) -> *mut ()
fn self_address_mut(&mut self) -> *mut ()
Returns the address of
self
. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
impl<'a, T> NonSyncFeatures<'a> for Twhere T: 'a + Clone,
§fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a> + 'a, Global>
fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a> + 'a, Global>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.§fn self_address_mut(&mut self) -> *mut ()
fn self_address_mut(&mut self) -> *mut ()
Returns the address of
self
. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> SafeBorrow<T> for Twhere
T: ?Sized,
impl<T> SafeBorrow<T> for Twhere T: ?Sized,
§fn borrow_replacement(ptr: &T) -> &T
fn borrow_replacement(ptr: &T) -> &T
Given
ptr
, which was obtained from a prior call to Self::borrow()
,
return a value with the same nominal lifetime which is guaranteed to
survive mutations to Self
. Read more