Expand description
§Qubit Text IO
Synchronous and asynchronous text 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
byte-oriented qubit_codec_text charsets. AsyncCharsetTextReader and
AsyncCharsetTextWriter drive the same charset state machines through
runtime-neutral qubit_io::AsyncByteInput and
qubit_io::AsyncByteOutput.
Modules§
- prelude
- Common text I/O traits and adapters for Qubit Text IO users.
Structs§
- Async
Charset Text Reader - Asynchronously decodes a byte input with a charset codec.
- Async
Charset Text Writer - Asynchronously encodes Unicode text into a charset byte output.
- Async
Utf8 Text Reader - Asynchronous UTF-8 reader over a Qubit byte input.
- Async
Utf8 Text Writer - Asynchronous UTF-8 writer over a Qubit byte output.
- Buffered
Text Reader - Buffered text reader driven by a byte-to-character transcoder.
- Buffered
Text Writer - Buffered text writer driven by a character-to-byte transcoder.
- Charset
String Decoder - Convenience decoder for complete inputs that should become a
String. - Charset
String Encoder - Convenience encoder for complete Rust strings.
- Charset
Text Reader - Text reader that decodes a byte stream with a charset codec.
- Charset
Text Writer - Text writer that encodes Unicode text with a charset codec.
- Input
Text Reader - Text reader over a boxed
qubit_io::CharInput. - Line
Ending Set - A set of line endings accepted by text readers.
- Output
Text Writer - Text writer over a boxed
qubit_io::CharOutput. - StrChar
Input - Character input over a borrowed string slice.
- StrText
Reader - Text reader over a borrowed string slice.
- String
Char Input - Character input over an owned
String. - String
Char Output - Character output over a borrowed
String. - String
Text Reader - Text reader over an owned string.
- String
Text Writer - Text writer over a borrowed
Stringwith configurable line endings. - Text
Append Limit Error - An error indicating that decoded text exceeded an append-size limit.
- Text
Reader Parts - The components of a buffered text reader that may contain unread state.
- Utf8
Text Reader - Streaming UTF-8 text reader over a Qubit byte input.
- Utf8
Text Writer - Streaming UTF-8 text writer over a Qubit byte output.
Enums§
- Line
Ending - Line ending used by text writers when writing a complete line.
Traits§
- Async
Text Line Reader - Asynchronously reads text by line while preserving line terminators.
- Async
Text Reader - Asynchronously reads Unicode scalar values and strings from a text source.
- Async
Text Writer - Asynchronously writes Unicode text to a text sink.
- Charset
Read Ext - Extension methods for reading charset-encoded text from byte streams.
- Charset
Write Ext - Extension methods for writing charset-encoded text to byte streams.
- Text
Line Reader - Reads text by line while preserving line terminators.
- Text
Reader - Reads Unicode scalar values and strings from a text source.
- Text
Writer - Writes Unicode text to a text sink.