pub struct Unredacted<'a, T: ?Sized>(pub &'a T);Expand description
A Display adapter that always formats a Redactable value in its raw,
unredacted form, bypassing the global redactor.
Intended for the rare places where the string is data rather than diagnostics (e.g. serialization to persistent storage or a wire format) and must round-trip. Do not use it for logs or Inspect.
Tuple Fields§
§0: &'a TTrait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for Unredacted<'a, T>
impl<'a, T> RefUnwindSafe for Unredacted<'a, T>
impl<'a, T> Send for Unredacted<'a, T>
impl<'a, T> Sync for Unredacted<'a, T>
impl<'a, T> Unpin for Unredacted<'a, T>
impl<'a, T> UnsafeUnpin for Unredacted<'a, T>
impl<'a, T> UnwindSafe for Unredacted<'a, T>
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