Crate basic_text[][src]

Basic Text strings and I/O streams

Structs

TextDuplexer

A HalfDuplex implementation which translates from an input HalfDuplex implementation producing an arbitrary byte sequence into a valid Basic Text stream.

TextReader

A Read implementation which translates from an input Read implementation producing an arbitrary byte sequence into a valid Basic Text stream.

TextStr

TextStr is to TextString as str is to String.

TextString

A Basic Text encoded, growable string.

TextWriter

A WriteLayered implementation which translates to an output WriteLayered producing a valid Basic Text stream from an arbitrary byte sequence.

Constants

NORMALIZATION_BUFFER_SIZE

The minimum size of a buffer needed to perform NFC normalization, and thus the minimum size needed to pass to TextReader's read.

Traits

ReadText

Add a convenience method for reading into TextStr.

ReadTextLayered

Extend the ReadLayered trait with read_text_with_status, a method for reading text data.

WriteText

Add a convenience method for reading into TextStr.

Functions

copy_text

Like std::io::copy, but for streams that can operate directly on text strings, so we can avoid re-validating them as text.

copy_text_using_status

Like std::io::copy, but for streams that can operate directly on text strings, so we can avoid re-validating them as text.

default_read_exact_text

Default implementation of ReadText::read_exact_text.

default_write_text

Default implementation of WriteText::read_exact_str.