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§
source§impl<T: Clone + ?Sized> Clone for DebugIgnore<T>
impl<T: Clone + ?Sized> 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: ?Sized> Debug for DebugIgnore<T>
impl<T: ?Sized> Debug for DebugIgnore<T>
The point of this struct.
source§impl<T: Default + ?Sized> Default for DebugIgnore<T>
impl<T: Default + ?Sized> Default for DebugIgnore<T>
source§fn default() -> DebugIgnore<T>
fn default() -> DebugIgnore<T>
Returns the “default value” for a type. Read more
source§impl<T: ?Sized> Deref for DebugIgnore<T>
impl<T: ?Sized> Deref for DebugIgnore<T>
source§impl<T: ?Sized> DerefMut for DebugIgnore<T>
impl<T: ?Sized> DerefMut for DebugIgnore<T>
source§impl<T> From<T> for DebugIgnore<T>
impl<T> From<T> for DebugIgnore<T>
source§impl<T: FromStr> FromStr for DebugIgnore<T>
impl<T: FromStr> FromStr for DebugIgnore<T>
source§impl<T: PartialEq + ?Sized> PartialEq<DebugIgnore<T>> for DebugIgnore<T>
impl<T: PartialEq + ?Sized> 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 + ?Sized> PartialOrd<DebugIgnore<T>> for DebugIgnore<T>
impl<T: PartialOrd + ?Sized> 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 more