pub struct WriteLenPtrFn<F, R>(/* private fields */)
where
F: FnMut(usize, *const u8) -> R;
Expand description
A wrapper for write functions for<R> FnMut(usize, *const u8) -> R
.
It implements WriteBytes
and WriteStr
traits and can be used in conjunction with IntoWriteFn
and IntoTryWriteFn
traits to simplify type inference.
Implementations§
Trait Implementations§
Source§impl<F, R: Clone> Clone for WriteLenPtrFn<F, R>
impl<F, R: Clone> Clone for WriteLenPtrFn<F, R>
Source§fn clone(&self) -> WriteLenPtrFn<F, R>
fn clone(&self) -> WriteLenPtrFn<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 WriteLenPtrFn<F, R>
impl<F, R: Debug> Debug for WriteLenPtrFn<F, R>
Source§impl<F, R: PartialEq> PartialEq for WriteLenPtrFn<F, R>
impl<F, R: PartialEq> PartialEq for WriteLenPtrFn<F, R>
Source§impl<F, R> WriteBytes for WriteLenPtrFn<F, R>
impl<F, R> WriteBytes for WriteLenPtrFn<F, R>
impl<F, R: Copy> Copy for WriteLenPtrFn<F, R>
impl<F, R: Eq> Eq for WriteLenPtrFn<F, R>
impl<F, R> StructuralPartialEq for WriteLenPtrFn<F, R>
impl<F, R> WriteStrAsBytes for WriteLenPtrFn<F, R>
Auto Trait Implementations§
impl<F, R> Freeze for WriteLenPtrFn<F, R>where
F: Freeze,
impl<F, R> RefUnwindSafe for WriteLenPtrFn<F, R>where
F: RefUnwindSafe,
impl<F, R> Send for WriteLenPtrFn<F, R>where
F: Send,
impl<F, R> Sync for WriteLenPtrFn<F, R>where
F: Sync,
impl<F, R> Unpin for WriteLenPtrFn<F, R>where
F: Unpin,
impl<F, R> UnwindSafe for WriteLenPtrFn<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