Struct debug_ignore::DebugIgnore
source · [−]#[repr(transparent)]pub struct DebugIgnore<T: ?Sized>(pub T);
Expand description
A newtype wrapper that causes the field within to be ignored while printing out Debug
output.
For more, see the crate documentation.
Tuple Fields
0: T
Trait Implementations
sourceimpl<T: Clone + ?Sized> Clone for DebugIgnore<T>
impl<T: Clone + ?Sized> Clone for DebugIgnore<T>
sourcefn clone(&self) -> DebugIgnore<T>
fn clone(&self) -> DebugIgnore<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<T: ?Sized> Debug for DebugIgnore<T>
impl<T: ?Sized> Debug for DebugIgnore<T>
The point of this struct.
sourceimpl<T: Default + ?Sized> Default for DebugIgnore<T>
impl<T: Default + ?Sized> Default for DebugIgnore<T>
sourcefn default() -> DebugIgnore<T>
fn default() -> DebugIgnore<T>
Returns the “default value” for a type. Read more
sourceimpl<T: ?Sized> Deref for DebugIgnore<T>
impl<T: ?Sized> Deref for DebugIgnore<T>
sourceimpl<T: ?Sized> DerefMut for DebugIgnore<T>
impl<T: ?Sized> DerefMut for DebugIgnore<T>
sourceimpl<T: ?Sized + Display> Display for DebugIgnore<T>
impl<T: ?Sized + Display> Display for DebugIgnore<T>
sourceimpl<T: FromStr> FromStr for DebugIgnore<T>
impl<T: FromStr> FromStr for DebugIgnore<T>
sourceimpl<T: Hash + ?Sized> Hash for DebugIgnore<T>
impl<T: Hash + ?Sized> Hash for DebugIgnore<T>
sourceimpl<T: Ord + ?Sized> Ord for DebugIgnore<T>
impl<T: Ord + ?Sized> Ord for DebugIgnore<T>
sourceimpl<T: PartialEq + ?Sized> PartialEq<DebugIgnore<T>> for DebugIgnore<T>
impl<T: PartialEq + ?Sized> PartialEq<DebugIgnore<T>> for DebugIgnore<T>
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &DebugIgnore<T>) -> bool
fn ne(&self, other: &DebugIgnore<T>) -> bool
This method tests for !=
.
sourceimpl<T: PartialOrd + ?Sized> PartialOrd<DebugIgnore<T>> for DebugIgnore<T>
impl<T: PartialOrd + ?Sized> PartialOrd<DebugIgnore<T>> for DebugIgnore<T>
sourcefn partial_cmp(&self, other: &DebugIgnore<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &DebugIgnore<T>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
impl<T: Copy + ?Sized> Copy for DebugIgnore<T>
impl<T: Eq + ?Sized> Eq for DebugIgnore<T>
impl<T: ?Sized> StructuralEq for DebugIgnore<T>
impl<T: ?Sized> StructuralPartialEq for DebugIgnore<T>
Auto Trait Implementations
impl<T: ?Sized> RefUnwindSafe for DebugIgnore<T> where
T: RefUnwindSafe,
impl<T: ?Sized> Send for DebugIgnore<T> where
T: Send,
impl<T: ?Sized> Sync for DebugIgnore<T> where
T: Sync,
impl<T: ?Sized> Unpin for DebugIgnore<T> where
T: Unpin,
impl<T: ?Sized> UnwindSafe for DebugIgnore<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more