pub struct TryWriteCStrFn<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 IntoTryWriteFn
trait to simplify type inference.
Implementations§
Trait Implementations§
Source§impl<F, R: Clone> Clone for TryWriteCStrFn<F, R>
impl<F, R: Clone> Clone for TryWriteCStrFn<F, R>
Source§fn clone(&self) -> TryWriteCStrFn<F, R>
fn clone(&self) -> TryWriteCStrFn<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 TryWriteCStrFn<F, R>
impl<F, R: Debug> Debug for TryWriteCStrFn<F, R>
Source§impl<F, R: PartialEq> PartialEq for TryWriteCStrFn<F, R>
impl<F, R: PartialEq> PartialEq for TryWriteCStrFn<F, R>
Source§impl<F, R> WriteBytes for TryWriteCStrFn<F, R>
impl<F, R> WriteBytes for TryWriteCStrFn<F, R>
impl<F, R: Copy> Copy for TryWriteCStrFn<F, R>
impl<F, R: Eq> Eq for TryWriteCStrFn<F, R>
impl<F, R> StructuralPartialEq for TryWriteCStrFn<F, R>
impl<F, R> WriteStrAsBytes for TryWriteCStrFn<F, R>
Auto Trait Implementations§
impl<F, R> Freeze for TryWriteCStrFn<F, R>where
F: Freeze,
impl<F, R> RefUnwindSafe for TryWriteCStrFn<F, R>where
F: RefUnwindSafe,
impl<F, R> Send for TryWriteCStrFn<F, R>where
F: Send,
impl<F, R> Sync for TryWriteCStrFn<F, R>where
F: Sync,
impl<F, R> Unpin for TryWriteCStrFn<F, R>where
F: Unpin,
impl<F, R> UnwindSafe for TryWriteCStrFn<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