Struct custom_print::WritePtrLenFn
source · pub struct WritePtrLenFn<F, R>(_)
where
F: FnMut(*const u8, usize) -> R;
Expand description
A wrapper for write functions for<R> FnMut(*const u8, usize) -> 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 WritePtrLenFn<F, R>where
F: FnMut(*const u8, usize) -> R + Clone,
impl<F, R: Clone> Clone for WritePtrLenFn<F, R>where F: FnMut(*const u8, usize) -> R + Clone,
source§fn clone(&self) -> WritePtrLenFn<F, R>
fn clone(&self) -> WritePtrLenFn<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 WritePtrLenFn<F, R>where
F: FnMut(*const u8, usize) -> R + Debug,
impl<F, R: Debug> Debug for WritePtrLenFn<F, R>where F: FnMut(*const u8, usize) -> R + Debug,
source§impl<F, R: PartialEq> PartialEq<WritePtrLenFn<F, R>> for WritePtrLenFn<F, R>where
F: FnMut(*const u8, usize) -> R + PartialEq,
impl<F, R: PartialEq> PartialEq<WritePtrLenFn<F, R>> for WritePtrLenFn<F, R>where F: FnMut(*const u8, usize) -> R + PartialEq,
source§fn eq(&self, other: &WritePtrLenFn<F, R>) -> bool
fn eq(&self, other: &WritePtrLenFn<F, R>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<F, R> WriteBytes for WritePtrLenFn<F, R>where
F: FnMut(*const u8, usize) -> R,
impl<F, R> WriteBytes for WritePtrLenFn<F, R>where F: FnMut(*const u8, usize) -> R,
impl<F, R: Copy> Copy for WritePtrLenFn<F, R>where F: FnMut(*const u8, usize) -> R + Copy,
impl<F, R: Eq> Eq for WritePtrLenFn<F, R>where F: FnMut(*const u8, usize) -> R + Eq,
impl<F, R> StructuralEq for WritePtrLenFn<F, R>where F: FnMut(*const u8, usize) -> R,
impl<F, R> StructuralPartialEq for WritePtrLenFn<F, R>where F: FnMut(*const u8, usize) -> R,
impl<F, R> WriteStrAsBytes for WritePtrLenFn<F, R>where F: FnMut(*const u8, usize) -> R,
Auto Trait Implementations§
impl<F, R> RefUnwindSafe for WritePtrLenFn<F, R>where F: RefUnwindSafe,
impl<F, R> Send for WritePtrLenFn<F, R>where F: Send,
impl<F, R> Sync for WritePtrLenFn<F, R>where F: Sync,
impl<F, R> Unpin for WritePtrLenFn<F, R>where F: Unpin,
impl<F, R> UnwindSafe for WritePtrLenFn<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