pub struct WriteCStrFn<F, R>(/* private fields */)
where
F: FnMut(&CStr) -> R;
Expand description
A wrapper for write functions for<R> FnMut(&CStr) -> 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 WriteCStrFn<F, R>
impl<F, R: Clone> Clone for WriteCStrFn<F, R>
Source§fn clone(&self) -> WriteCStrFn<F, R>
fn clone(&self) -> WriteCStrFn<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 WriteCStrFn<F, R>
impl<F, R: Debug> Debug for WriteCStrFn<F, R>
Source§impl<F, R: PartialEq> PartialEq for WriteCStrFn<F, R>
impl<F, R: PartialEq> PartialEq for WriteCStrFn<F, R>
Source§impl<F, R> WriteBytes for WriteCStrFn<F, R>
impl<F, R> WriteBytes for WriteCStrFn<F, R>
impl<F, R: Copy> Copy for WriteCStrFn<F, R>
impl<F, R: Eq> Eq for WriteCStrFn<F, R>
impl<F, R> StructuralPartialEq for WriteCStrFn<F, R>
impl<F, R> WriteStrAsBytes for WriteCStrFn<F, R>
Auto Trait Implementations§
impl<F, R> Freeze for WriteCStrFn<F, R>where
F: Freeze,
impl<F, R> RefUnwindSafe for WriteCStrFn<F, R>where
F: RefUnwindSafe,
impl<F, R> Send for WriteCStrFn<F, R>where
F: Send,
impl<F, R> Sync for WriteCStrFn<F, R>where
F: Sync,
impl<F, R> Unpin for WriteCStrFn<F, R>where
F: Unpin,
impl<F, R> UnwindSafe for WriteCStrFn<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