Struct jj_cli::templater::ListPropertyTemplate
source · 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.
The separator takes a context of type C.
Implementations§
source§impl<P, S, F> ListPropertyTemplate<P, S, F>
impl<P, S, F> ListPropertyTemplate<P, S, F>
Trait Implementations§
source§impl<C, O, P, S, F> ListTemplate<C> for ListPropertyTemplate<P, S, F>where
P: TemplateProperty<C>,
P::Output: IntoIterator<Item = O>,
S: Template<C>,
F: Fn(&C, &mut dyn Formatter, O) -> Result<()>,
impl<C, O, P, S, F> ListTemplate<C> for ListPropertyTemplate<P, S, F>where
P: TemplateProperty<C>,
P::Output: IntoIterator<Item = O>,
S: Template<C>,
F: Fn(&C, &mut dyn Formatter, O) -> Result<()>,
Auto Trait Implementations§
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