pub struct ListPropertyTemplate<P, S, F> { /* private fields */ }Expand description
Renders template property of list type with the given separator.
Each list item will be formatted by the given format_item() function.
Implementations§
Source§impl<P, S, F> ListPropertyTemplate<P, S, F>
impl<P, S, F> ListPropertyTemplate<P, S, F>
pub fn new<O>(property: P, separator: S, format_item: F) -> Selfwhere
P: TemplateProperty,
P::Output: IntoIterator<Item = O>,
S: Template,
F: Fn(&mut TemplateFormatter<'_>, O) -> Result<()>,
Trait Implementations§
Source§impl<O, P, S, F> ListTemplate for ListPropertyTemplate<P, S, F>where
P: TemplateProperty,
P::Output: IntoIterator<Item = O>,
S: Template,
F: Fn(&mut TemplateFormatter<'_>, O) -> Result<()>,
impl<O, P, S, F> ListTemplate for ListPropertyTemplate<P, S, F>where
P: TemplateProperty,
P::Output: IntoIterator<Item = O>,
S: Template,
F: Fn(&mut TemplateFormatter<'_>, O) -> Result<()>,
Source§impl<O, P, S, F> Template for ListPropertyTemplate<P, S, F>where
P: TemplateProperty,
P::Output: IntoIterator<Item = O>,
S: Template,
F: Fn(&mut TemplateFormatter<'_>, O) -> Result<()>,
impl<O, P, S, F> Template for ListPropertyTemplate<P, S, F>where
P: TemplateProperty,
P::Output: IntoIterator<Item = O>,
S: Template,
F: Fn(&mut TemplateFormatter<'_>, O) -> Result<()>,
Auto Trait Implementations§
impl<P, S, F> Freeze for ListPropertyTemplate<P, S, F>
impl<P, S, F> RefUnwindSafe for ListPropertyTemplate<P, S, F>
impl<P, S, F> Send for ListPropertyTemplate<P, S, F>
impl<P, S, F> Sync for ListPropertyTemplate<P, S, F>
impl<P, S, F> Unpin for ListPropertyTemplate<P, S, F>
impl<P, S, F> UnwindSafe for ListPropertyTemplate<P, S, F>
Blanket Implementations§
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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