pub struct DisplayRelayIds<'a, T: HasRelayIds + ?Sized> {
inner: &'a T,
}
Expand description
A helper type used to format the RelayId
s in a
HasRelayIds
.
Fields§
§inner: &'a T
The HasRelayIds that we’re displaying.
Implementations§
Source§impl<'a, T: HasRelayIds + ?Sized> DisplayRelayIds<'a, T>
impl<'a, T: HasRelayIds + ?Sized> DisplayRelayIds<'a, T>
Trait Implementations§
Source§impl<'a, T: Clone + HasRelayIds + ?Sized> Clone for DisplayRelayIds<'a, T>
impl<'a, T: Clone + HasRelayIds + ?Sized> Clone for DisplayRelayIds<'a, T>
Source§fn clone(&self) -> DisplayRelayIds<'a, T>
fn clone(&self) -> DisplayRelayIds<'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: HasRelayIds + ?Sized> Debug for DisplayRelayIds<'a, T>
impl<'a, T: HasRelayIds + ?Sized> Debug for DisplayRelayIds<'a, T>
Source§impl<'a, T: HasRelayIds + ?Sized> Display for DisplayRelayIds<'a, T>
impl<'a, T: HasRelayIds + ?Sized> Display for DisplayRelayIds<'a, T>
Source§impl<'a, T: HasRelayIds + ?Sized> Redactable for DisplayRelayIds<'a, T>
impl<'a, T: HasRelayIds + ?Sized> Redactable for DisplayRelayIds<'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.§fn debug_redacted(&self, f: &mut Formatter<'_>) -> Result<(), Error>
fn debug_redacted(&self, f: &mut Formatter<'_>) -> Result<(), Error>
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 DisplayRelayIds<'a, T>where
T: ?Sized,
impl<'a, T> RefUnwindSafe for DisplayRelayIds<'a, T>where
T: RefUnwindSafe + ?Sized,
impl<'a, T> Send for DisplayRelayIds<'a, T>
impl<'a, T> Sync for DisplayRelayIds<'a, T>
impl<'a, T> Unpin for DisplayRelayIds<'a, T>where
T: ?Sized,
impl<'a, T> UnwindSafe for DisplayRelayIds<'a, T>where
T: RefUnwindSafe + ?Sized,
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