Trait utf8_io::WriteStr[][src]

pub trait WriteStr: Write {
    fn write_str(&mut self, buf: &str) -> Result<()> { ... }

Add a convenience and optimizing method for writing from str.

Provided methods

fn write_str(&mut self, buf: &str) -> Result<()>[src]

Like Write::write_all, but takes a &str, allowing implementors which require valid UTF-8 to avoid re-validating the data.

Loading content...


impl<Inner: Write> WriteStr for Utf8Writer<Inner>[src]

impl<Inner: HalfDuplex> WriteStr for Utf8Duplexer<Inner>[src]

Loading content...