pub struct FlushFn<F, R>(/* private fields */)
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§
impl<F, R: Copy> Copy for FlushFn<F, R>
impl<F, R: Eq> Eq for FlushFn<F, R>
impl<F, R> StructuralPartialEq for FlushFn<F, R>where
F: FnMut() -> R,
Auto Trait Implementations§
impl<F, R> Freeze for FlushFn<F, R>where
F: Freeze,
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