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<()> { ... } }
Expand description
Add a convenience method for reading into TextStr
.
Required methods
fn read_text(&mut self, buf: &mut TextStr) -> Result<usize>
[src]
Expand description
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.
Provided methods
fn read_exact_text(&mut self, buf: &mut TextStr) -> Result<()>
[src]
Expand description
Like read_exact
but produces the result in a TextStr
.
Implementors
impl<Inner: HalfDuplexLayered + ReadStrLayered + WriteStr> ReadText for TextDuplexer<Inner>
[src]
impl<Inner: HalfDuplexLayered + ReadStrLayered + WriteStr> ReadText for TextDuplexer<Inner>
[src]impl<Inner: ReadStrLayered> ReadText for TextReader<Inner>
[src]
impl<Inner: ReadStrLayered> ReadText for TextReader<Inner>
[src]