pub struct WriteStringFn<F, R>(/* private fields */)
where
F: FnMut(String) -> R;
Expand description
A wrapper for write functions for<R> FnMut(String) -> R
.
It implements WriteStr
trait and can be used in conjunction with IntoWriteFn
and IntoTryWriteFn
traits to simplify type inference.
Implementations§
Trait Implementations§
Source§impl<F, R: Clone> Clone for WriteStringFn<F, R>
impl<F, R: Clone> Clone for WriteStringFn<F, R>
Source§fn clone(&self) -> WriteStringFn<F, R>
fn clone(&self) -> WriteStringFn<F, R>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<F, R: Debug> Debug for WriteStringFn<F, R>
impl<F, R: Debug> Debug for WriteStringFn<F, R>
Source§impl<F, R: PartialEq> PartialEq for WriteStringFn<F, R>
impl<F, R: PartialEq> PartialEq for WriteStringFn<F, R>
Source§impl<F, R> WriteStr for WriteStringFn<F, R>
impl<F, R> WriteStr for WriteStringFn<F, R>
impl<F, R: Copy> Copy for WriteStringFn<F, R>
impl<F, R: Eq> Eq for WriteStringFn<F, R>
impl<F, R> StructuralPartialEq for WriteStringFn<F, R>
Auto Trait Implementations§
impl<F, R> Freeze for WriteStringFn<F, R>where
F: Freeze,
impl<F, R> RefUnwindSafe for WriteStringFn<F, R>where
F: RefUnwindSafe,
impl<F, R> Send for WriteStringFn<F, R>where
F: Send,
impl<F, R> Sync for WriteStringFn<F, R>where
F: Sync,
impl<F, R> Unpin for WriteStringFn<F, R>where
F: Unpin,
impl<F, R> UnwindSafe for WriteStringFn<F, R>where
F: UnwindSafe,
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