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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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