Struct custom_print::WriteCCharPtrFn
source · pub struct WriteCCharPtrFn<F, R>(_)
where
F: FnMut(*const c_char) -> R;
Expand description
A wrapper for write functions for<R> FnMut(*const c_char) -> R
.
It implements WriteBytes
and WriteStr
traits and can be used in conjunction with IntoWriteFn
trait to simplify type inference.
Implementations§
Trait Implementations§
source§impl<F, R: Clone> Clone for WriteCCharPtrFn<F, R>where
F: FnMut(*const c_char) -> R + Clone,
impl<F, R: Clone> Clone for WriteCCharPtrFn<F, R>where F: FnMut(*const c_char) -> R + Clone,
source§fn clone(&self) -> WriteCCharPtrFn<F, R>
fn clone(&self) -> WriteCCharPtrFn<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<WriteCCharPtrFn<F, R>> for WriteCCharPtrFn<F, R>where
F: FnMut(*const c_char) -> R + PartialEq,
impl<F, R: PartialEq> PartialEq<WriteCCharPtrFn<F, R>> for WriteCCharPtrFn<F, R>where F: FnMut(*const c_char) -> R + PartialEq,
source§fn eq(&self, other: &WriteCCharPtrFn<F, R>) -> bool
fn eq(&self, other: &WriteCCharPtrFn<F, R>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<F, R> WriteBytes for WriteCCharPtrFn<F, R>where
F: FnMut(*const c_char) -> R,
impl<F, R> WriteBytes for WriteCCharPtrFn<F, R>where F: FnMut(*const c_char) -> R,
impl<F, R: Copy> Copy for WriteCCharPtrFn<F, R>where F: FnMut(*const c_char) -> R + Copy,
impl<F, R: Eq> Eq for WriteCCharPtrFn<F, R>where F: FnMut(*const c_char) -> R + Eq,
impl<F, R> StructuralEq for WriteCCharPtrFn<F, R>where F: FnMut(*const c_char) -> R,
impl<F, R> StructuralPartialEq for WriteCCharPtrFn<F, R>where F: FnMut(*const c_char) -> R,
impl<F, R> WriteStrAsBytes for WriteCCharPtrFn<F, R>where F: FnMut(*const c_char) -> R,
Auto Trait Implementations§
impl<F, R> RefUnwindSafe for WriteCCharPtrFn<F, R>where F: RefUnwindSafe,
impl<F, R> Send for WriteCCharPtrFn<F, R>where F: Send,
impl<F, R> Sync for WriteCCharPtrFn<F, R>where F: Sync,
impl<F, R> Unpin for WriteCCharPtrFn<F, R>where F: Unpin,
impl<F, R> UnwindSafe for WriteCCharPtrFn<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