pub struct TryWriteCStringFn<F, R>(/* private fields */)
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>
impl<F, R: Clone> Clone for TryWriteCStringFn<F, R>
Source§fn clone(&self) -> TryWriteCStringFn<F, R>
fn clone(&self) -> TryWriteCStringFn<F, R>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<F, R: Debug> Debug for TryWriteCStringFn<F, R>
impl<F, R: Debug> Debug for TryWriteCStringFn<F, R>
Source§impl<F, R: PartialEq> PartialEq for TryWriteCStringFn<F, R>
impl<F, R: PartialEq> PartialEq for TryWriteCStringFn<F, R>
Source§fn eq(&self, other: &TryWriteCStringFn<F, R>) -> bool
fn eq(&self, other: &TryWriteCStringFn<F, R>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl<F, R> WriteBytes for TryWriteCStringFn<F, R>
impl<F, R> WriteBytes for TryWriteCStringFn<F, R>
impl<F, R: Copy> Copy for TryWriteCStringFn<F, R>
impl<F, R: Eq> Eq for TryWriteCStringFn<F, R>
impl<F, R> StructuralPartialEq for TryWriteCStringFn<F, R>
impl<F, R> WriteStrAsBytes for TryWriteCStringFn<F, R>
Auto Trait Implementations§
impl<F, R> Freeze for TryWriteCStringFn<F, R>where
F: Freeze,
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