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