pub trait Writable {
    type Fmt: Write;
    type IO: Write;

    // Required methods
    fn as_fmt(&mut self) -> Option<&mut Self::Fmt>;
    fn as_io(&mut self) -> Option<&mut Self::IO>;
}

Required Associated Types§

Required Methods§

source

fn as_fmt(&mut self) -> Option<&mut Self::Fmt>

source

fn as_io(&mut self) -> Option<&mut Self::IO>

Implementors§

source§

impl<W: Write> Writable for FmtWrite<W>

§

type Fmt = W

§

type IO = Stdout

source§

impl<W: Write> Writable for IoWrite<W>

§

type Fmt = String

§

type IO = W