pub struct FromFn<F> { /* private fields */ }
Expand description
A captured function used for formatting tokens.
Created using from_fn().
Trait Implementations
sourceimpl<L, F> FormatInto<L> for FromFn<F> where
L: Lang,
F: FnOnce(&mut Tokens<L>),
impl<L, F> FormatInto<L> for FromFn<F> where
L: Lang,
F: FnOnce(&mut Tokens<L>),
sourcefn format_into(self, tokens: &mut Tokens<L>)
fn format_into(self, tokens: &mut Tokens<L>)
Convert the type into tokens in-place. Read more
Auto Trait Implementations
impl<F> RefUnwindSafe for FromFn<F> where
F: RefUnwindSafe,
impl<F> Send for FromFn<F> where
F: Send,
impl<F> Sync for FromFn<F> where
F: Sync,
impl<F> Unpin for FromFn<F> where
F: Unpin,
impl<F> UnwindSafe for FromFn<F> where
F: 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