Struct basic_text::TextReader [−][src]
pub struct TextReader<Inner: ReadStrLayered> { /* fields omitted */ }Expand description
Implementations
Construct a new instance of TextReader wrapping inner, which can
be anything that implements Read.
Like new, but replaces U+85 (NEL) with U+A instead of U+20.
Like new, but replaces U+2028 (LS) and U+2029 (PS) with U+A instead
of U+20.
Construct a new instance of TextReader wrapping inner, which
can be anything that implements ReadStrLayered, such as a
Utf8Reader.
Like from_utf8, but replaces U+85 (NEL) with U+A instead of U+20.
Like from_utf8, but replaces U+2028 (LS) and U+2029 (PS) with U+A
instead of U+20.
Trait Implementations
Like AsHandle::as_handle and AsSocket::as_socket
but can return either type. Read more
Like AsRawHandle::as_raw_handle and AsRawSocket::as_raw_socket
but can return either type. Read more
A suggested size, in bytes, for buffering for performance.
Pull some bytes from this source into the specified buffer, returning how many bytes were read. Read more
Read all bytes until EOF in this source, placing them into buf. Read more
Read all bytes until EOF in this source, appending them to buf. Read more
Like read, except that it reads into a slice of buffers. Read more
can_vector)Determines if this Reader has an efficient read_vectored
implementation. Read more
read_initializer)Determines if this Reader can work with buffers of uninitialized
memory. Read more
Read the exact number of bytes required to fill buf. Read more
Creates a “by reference” adapter for this instance of Read. Read more
Creates an adapter which will chain this stream with another. Read more
Like Read::read, but also returns a Status.
Some streams require a buffer of at least a certain size.
Like Read::read_vectored, but also returns a Status.
Like read but produces the result in a str. Be sure to check the
size field of the return value to see how many bytes were written. Read more
Like read_exact but produces the result in a str.
Like read_with_status but produces the result in a str. Be sure to
check the return value to see how many bytes were written. Read more
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. Read more
Like read_exact_str but for reading Basic Text content. As with
read_text, the resulting string may not be a Basic Text string. Read more
Like read_to_string, but reads into a TextString.
Like read_str_with_status but for reading Basic Text data. 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. Read more
Like read_exact_str_using_status but for reading Basic Text content.
As with read_text, the resulting string may not be a Basic Text
string. Read more