Struct custom_print::FlushFn
source · pub struct FlushFn<F, R>(_)
where
F: FnMut() -> R;
Expand description
A wrapper for flush function for<R> FnMut(*const c_char) -> R
.
It implements Flush
trait and can be used in conjunction with IntoTryWriteFn trait to simplify type inference.
Implementations§
Trait Implementations§
source§impl<F, R: PartialEq> PartialEq<FlushFn<F, R>> for FlushFn<F, R>where
F: FnMut() -> R + PartialEq,
impl<F, R: PartialEq> PartialEq<FlushFn<F, R>> for FlushFn<F, R>where F: FnMut() -> R + PartialEq,
impl<F, R: Copy> Copy for FlushFn<F, R>where F: FnMut() -> R + Copy,
impl<F, R: Eq> Eq for FlushFn<F, R>where F: FnMut() -> R + Eq,
impl<F, R> StructuralEq for FlushFn<F, R>where F: FnMut() -> R,
impl<F, R> StructuralPartialEq for FlushFn<F, R>where F: FnMut() -> R,
Auto Trait Implementations§
impl<F, R> RefUnwindSafe for FlushFn<F, R>where F: RefUnwindSafe,
impl<F, R> Send for FlushFn<F, R>where F: Send,
impl<F, R> Sync for FlushFn<F, R>where F: Sync,
impl<F, R> Unpin for FlushFn<F, R>where F: Unpin,
impl<F, R> UnwindSafe for FlushFn<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