Struct custom_print::WriteStringFn
source · pub struct WriteStringFn<F, R>(_)
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>where
F: FnMut(String) -> R + Clone,
impl<F, R: Clone> Clone for WriteStringFn<F, R>where F: FnMut(String) -> R + Clone,
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: PartialEq> PartialEq<WriteStringFn<F, R>> for WriteStringFn<F, R>where
F: FnMut(String) -> R + PartialEq,
impl<F, R: PartialEq> PartialEq<WriteStringFn<F, R>> for WriteStringFn<F, R>where F: FnMut(String) -> R + PartialEq,
source§fn eq(&self, other: &WriteStringFn<F, R>) -> bool
fn eq(&self, other: &WriteStringFn<F, R>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<F, R: Copy> Copy for WriteStringFn<F, R>where F: FnMut(String) -> R + Copy,
impl<F, R: Eq> Eq for WriteStringFn<F, R>where F: FnMut(String) -> R + Eq,
impl<F, R> StructuralEq for WriteStringFn<F, R>where F: FnMut(String) -> R,
impl<F, R> StructuralPartialEq for WriteStringFn<F, R>where F: FnMut(String) -> R,
Auto Trait Implementations§
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