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§
- Encoded
Text Reader - Text reader that decodes a byte reader with an explicit encoding.
- Encoded
Text Writer - Text writer that encodes Unicode text with an explicit encoding.
- StrText
Reader - Text reader over a borrowed string slice.
- String
Text Reader - Text reader over an owned string.
- String
Text Writer - Text writer over a borrowed
Stringwith configurable line endings. - Utf8
Text Reader - Streaming text reader for UTF-8 byte input.
- Utf8
Text Writer - Text writer that encodes text as UTF-8 bytes.
Enums§
- Coding
Error Policy - Controls how text adapters handle malformed or unencodable data.
- Line
Ending - Line ending used by text writers when writing a complete line.
Traits§
- Text
Line Read - Reads text by line while preserving line terminators.
- Text
Read - Reads Unicode scalar values and strings from a text source.
- Text
Write - Writes Unicode text to a text sink.