Struct laby::RenderIteratorDelimited
source · pub struct RenderIteratorDelimited<I, S>(pub I, pub S)
where
I: IntoIterator,
I::Item: Render,
S: AsRef<str>;
Expand description
Wraps an Iterator
, making it implement Render
, with a delimiter between items.
All items yielded by the iterator must implement Render
, which will be rendered
sequentially, in the order they are yielded, with a string delimiter in-between. The delimiter
is not escaped.
This renderer is lazy; the iterator wrapped by this type will only be iterated when
render
is called on the value, not when the value is constructed.
Consider using the iter!
macro instead of constructing this type manually.
Tuple Fields§
§0: I
The iterator from which items are rendered.
1: S
The delimiter to render between the items.