Skip to main content

Crate qubit_text_io

Crate qubit_text_io 

Source
Expand description

§Qubit Text IO

Text-oriented I/O traits and adapters for Rust.

This crate defines small traits for code that produces or consumes Unicode text without choosing the final byte encoding or storage destination. It also provides adapters for in-memory text, UTF-8 byte streams, and explicit encoding_rs encodings.

Modules§

prelude
Common text I/O traits and adapters for Qubit Text IO users.

Structs§

EncodedTextReader
Text reader that decodes a byte reader with an explicit encoding.
EncodedTextWriter
Text writer that encodes Unicode text with an explicit encoding.
StrTextReader
Text reader over a borrowed string slice.
StringTextReader
Text reader over an owned string.
StringTextWriter
Text writer over a borrowed String with configurable line endings.
Utf8TextReader
Streaming text reader for UTF-8 byte input.
Utf8TextWriter
Text writer that encodes text as UTF-8 bytes.

Enums§

CodingErrorPolicy
Controls how text adapters handle malformed or unencodable data.
LineEnding
Line ending used by text writers when writing a complete line.

Traits§

TextLineRead
Reads text by line while preserving line terminators.
TextRead
Reads Unicode scalar values and strings from a text source.
TextWrite
Writes Unicode text to a text sink.