#[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, Q: ?Sized> AsRef<Q> for DebugIgnore<T>
impl<T, Q: ?Sized> AsRef<Q> for DebugIgnore<T>
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: Ord + ?Sized> Ord for DebugIgnore<T>
impl<T: Ord + ?Sized> 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: PartialOrd + ?Sized> PartialOrd for DebugIgnore<T>
impl<T: PartialOrd + ?Sized> PartialOrd for DebugIgnore<T>
impl<T: Copy + ?Sized> Copy for DebugIgnore<T>
impl<T: Eq + ?Sized> Eq for DebugIgnore<T>
impl<T: ?Sized> StructuralPartialEq for DebugIgnore<T>
Auto Trait Implementations§
impl<T> Freeze for DebugIgnore<T>
impl<T> RefUnwindSafe for DebugIgnore<T>where
T: RefUnwindSafe + ?Sized,
impl<T> Send for DebugIgnore<T>
impl<T> Sync for DebugIgnore<T>
impl<T> Unpin for DebugIgnore<T>
impl<T> UnwindSafe for DebugIgnore<T>where
T: UnwindSafe + ?Sized,
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