pub struct Hide<T>(pub T);Expand description
Wrapper for slice of bytes without printing.
§Examples
let s = format!("{}", Hide([1, 2, 3, 4]));
assert_eq!(s, "<hidden>");Tuple Fields§
§0: TTrait Implementations§
impl<T: Copy> Copy for Hide<T>
impl<T: Eq> Eq for Hide<T>
impl<T> StructuralPartialEq for Hide<T>
Auto Trait Implementations§
impl<T> Freeze for Hide<T>where
T: Freeze,
impl<T> RefUnwindSafe for Hide<T>where
T: RefUnwindSafe,
impl<T> Send for Hide<T>where
T: Send,
impl<T> Sync for Hide<T>where
T: Sync,
impl<T> Unpin for Hide<T>where
T: Unpin,
impl<T> UnwindSafe for Hide<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