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::Visitor>
type Visitor = VisitDelimited<D, V::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, 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> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
Uses borrowed data to replace owned data, usually by cloning. Read more