pub struct Delimited<D, V> { /* private fields */ }
Expand description
A MakeVisitor
wrapper that wraps a visitor that writes formatted output so
that a delimiter is inserted between writing formatted field values.
Implementations
sourceimpl<D, V> Delimited<D, V>
impl<D, V> Delimited<D, V>
sourcepub fn new(delimiter: D, inner: V) -> Self
pub fn new(delimiter: D, inner: V) -> Self
Returns a new MakeVisitor
implementation that wraps inner
so that
it will format each visited field separated by the provided delimiter
.
Trait Implementations
sourceimpl<D, V, T> MakeVisitor<T> for Delimited<D, V> where
D: AsRef<str> + Clone,
V: MakeVisitor<T>,
V::Visitor: VisitFmt,
impl<D, V, T> MakeVisitor<T> for Delimited<D, V> where
D: AsRef<str> + Clone,
V: MakeVisitor<T>,
V::Visitor: VisitFmt,
type Visitor = VisitDelimited<D, <V as MakeVisitor<T>>::Visitor>
type Visitor = VisitDelimited<D, <V as MakeVisitor<T>>::Visitor>
The visitor type produced by this MakeVisitor
.
sourcefn make_visitor(&self, target: T) -> Self::Visitor
fn make_visitor(&self, target: T) -> Self::Visitor
Make a new visitor for the provided target
.
Auto Trait Implementations
impl<D, V> RefUnwindSafe for Delimited<D, V> where
D: RefUnwindSafe,
V: RefUnwindSafe,
impl<D, V> Send for Delimited<D, V> where
D: Send,
V: Send,
impl<D, V> Sync for Delimited<D, V> where
D: Sync,
V: Sync,
impl<D, V> Unpin for Delimited<D, V> where
D: Unpin,
V: Unpin,
impl<D, V> UnwindSafe for Delimited<D, V> where
D: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T, M> MakeExt<T> for M where
M: MakeVisitor<T> + Sealed<MakeExtMarker<T>>,
impl<T, M> MakeExt<T> for M where
M: MakeVisitor<T> + Sealed<MakeExtMarker<T>>,
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more