pub struct DisplayChanTarget<'a, T> {
inner: &'a T,
}
Expand description
A reference to a ChanTarget that implements Display using a hopefully useful format.
Fields§
§inner: &'a T
The ChanTarget that we’re formatting.
Implementations§
Source§impl<'a, T: ChanTarget> DisplayChanTarget<'a, T>
impl<'a, T: ChanTarget> DisplayChanTarget<'a, T>
Trait Implementations§
Source§impl<'a, T: Clone> Clone for DisplayChanTarget<'a, T>
impl<'a, T: Clone> Clone for DisplayChanTarget<'a, T>
Source§fn clone(&self) -> DisplayChanTarget<'a, T>
fn clone(&self) -> DisplayChanTarget<'a, T>
Returns a duplicate 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<'a, T: Debug> Debug for DisplayChanTarget<'a, T>
impl<'a, T: Debug> Debug for DisplayChanTarget<'a, T>
Source§impl<'a, T: ChanTarget> Display for DisplayChanTarget<'a, T>
impl<'a, T: ChanTarget> Display for DisplayChanTarget<'a, T>
Source§impl<'a, T: ChanTarget + Debug> Redactable for DisplayChanTarget<'a, T>
impl<'a, T: ChanTarget + Debug> Redactable for DisplayChanTarget<'a, T>
Source§fn display_redacted(&self, f: &mut Formatter<'_>) -> Result
fn display_redacted(&self, f: &mut Formatter<'_>) -> Result
As
Display::fmt
, but produce a redacted representation.Source§fn debug_redacted(&self, f: &mut Formatter<'_>) -> Result
fn debug_redacted(&self, f: &mut Formatter<'_>) -> Result
As
Debug::fmt
, but produce a redacted representation.§fn redacted(&self) -> Redacted<&Self>
fn redacted(&self) -> Redacted<&Self>
Return a smart pointer that will display or debug this object as its
redacted form.
§fn maybe_redacted(&self, redact: bool) -> MaybeRedacted<&Self>
fn maybe_redacted(&self, redact: bool) -> MaybeRedacted<&Self>
Return a smart pointer that redacts this object if
redact
is true.Auto Trait Implementations§
impl<'a, T> Freeze for DisplayChanTarget<'a, T>
impl<'a, T> RefUnwindSafe for DisplayChanTarget<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for DisplayChanTarget<'a, T>where
T: Sync,
impl<'a, T> Sync for DisplayChanTarget<'a, T>where
T: Sync,
impl<'a, T> Unpin for DisplayChanTarget<'a, T>
impl<'a, T> UnwindSafe for DisplayChanTarget<'a, T>where
T: RefUnwindSafe,
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more