Trait basic_text::ReadText[][src]

pub trait ReadText: ReadStr {
    fn read_text(&mut self, buf: &mut TextStr) -> Result<usize>;

    fn read_exact_text(&mut self, buf: &mut TextStr) -> Result<()> { ... }
}

Add a convenience method for reading into TextStr.

Required methods

fn read_text(&mut self, buf: &mut TextStr) -> Result<usize>[src]

Like read but produces the result in a TextStr. Be sure to check the size field of the return value to see how many bytes were written.

Loading content...

Provided methods

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

Like read_exact but produces the result in a TextStr.

Loading content...

Implementors

impl<Inner: HalfDuplexLayered + ReadStrLayered + WriteStr> ReadText for TextDuplexer<Inner>[src]

impl<Inner: ReadStrLayered> ReadText for TextReader<Inner>[src]

Loading content...