pub trait StrWrite {
    // Required methods
    fn write_str(&mut self, s: &str) -> Result<()>;
    fn write_fmt(&mut self, args: Arguments<'_>) -> Result<()>;
}
Expand description

Trait that allows writing string slices. This is basically an extension of std::io::Write in order to include String.

Required Methods§

source

fn write_str(&mut self, s: &str) -> Result<()>

source

fn write_fmt(&mut self, args: Arguments<'_>) -> Result<()>

Implementations on Foreign Types§

source§

impl<'w> StrWrite for String

source§

fn write_str(&mut self, s: &str) -> Result<()>

source§

fn write_fmt(&mut self, args: Arguments<'_>) -> Result<()>

source§

impl<W> StrWrite for &mut W
where W: StrWrite,

source§

fn write_str(&mut self, s: &str) -> Result<()>

source§

fn write_fmt(&mut self, args: Arguments<'_>) -> Result<()>

Implementors§

source§

impl<W> StrWrite for WriteWrapper<W>
where W: Write,