Trait basic_text::ReadText [−][src]
pub trait ReadText: ReadStr { fn read_text_substr(&mut self, buf: &mut TextSubstr) -> Result<usize>; fn read_exact_text_substr(&mut self, buf: &mut TextSubstr) -> Result<()> { ... } fn read_to_text_string(&mut self, buf: &mut TextString) -> Result<usize> { ... } }
Expand description
Add a convenience method for reading Basic Text content.
Required methods
fn read_text_substr(&mut self, buf: &mut TextSubstr) -> Result<usize>
[src]
fn read_text_substr(&mut self, buf: &mut TextSubstr) -> Result<usize>
[src]Like read_str
but for reading Basic Text content. Note that the
resulting data may not be a Basic Text string, as it may be eg. a
portion of a stream that starts with a non-starter.
Provided methods
fn read_exact_text_substr(&mut self, buf: &mut TextSubstr) -> Result<()>
[src]
fn read_exact_text_substr(&mut self, buf: &mut TextSubstr) -> Result<()>
[src]Like read_exact_str
but for reading Basic Text content. As with
read_text
, the resulting string may not be a Basic Text string.
fn read_to_text_string(&mut self, buf: &mut TextString) -> Result<usize>
[src]
fn read_to_text_string(&mut self, buf: &mut TextString) -> Result<usize>
[src]Like read_to_string
, but reads into a TextString
.
Implementors
impl<Inner: HalfDuplexLayered + ReadStrLayered + WriteStr> ReadText for TextDuplexer<Inner>
[src]
impl<Inner: HalfDuplexLayered + ReadStrLayered + WriteStr> ReadText for TextDuplexer<Inner>
[src]fn read_text_substr(&mut self, buf: &mut TextSubstr) -> Result<usize>
[src]
fn read_exact_text_substr(&mut self, buf: &mut TextSubstr) -> Result<()>
[src]
impl<Inner: ReadStrLayered> ReadText for TextReader<Inner>
[src]
impl<Inner: ReadStrLayered> ReadText for TextReader<Inner>
[src]