Trait custom_print::Flush

source ·
pub trait Flush {
    type Output;

    // Required method
    fn flush(&mut self) -> Self::Output;
}
Expand description

A trait for objects which can flush written data on request.

This trait is used by IoWriter.

Required Associated Types§

source

type Output

The resulting type after flushing.

Required Methods§

source

fn flush(&mut self) -> Self::Output

Performs flush.

Implementations on Foreign Types§

source§

impl Flush for ()

§

type Output = ()

source§

fn flush(&mut self) -> Self::Output

Implementors§

source§

impl<F1, F2> Flush for IoTryWriter<F1, F2>where F2: Flush, F2::Output: IntoIoFlushResult,

source§

impl<F1, F2> Flush for IoWriter<F1, F2>where F2: Flush, F2::Output: ExpectIoFlushResult,

source§

impl<F, R> Flush for FlushFn<F, R>where F: FnMut() -> R,

§

type Output = R