Skip to main content

Crate qubit_codec_text

Crate qubit_codec_text 

Source
Expand description

§Qubit Text Codec

Low-level Unicode constants, character classification helpers, and text codec primitives for ASCII, ISO-8859-1, UTF-8, UTF-16, and UTF-32-oriented code.

This crate deliberately stays below std::io::Read and std::io::Write. Concrete text I/O adapters are expected to own buffering, EOF handling, line endings, and std::io::Error mapping while using the codecs from this crate for strict buffer-level encoding and decoding.

Modules§

prelude
Common imports for Qubit Text Codec callers.

Structs§

AsciiCodec
Single-byte ASCII codec for bytes.
Charset
Identifies the charset associated with a codec or error.
CharsetConverter
Converts units encoded with one charset into units encoded with another charset.
CharsetDecodeError
Error reported by a charset decoder.
CharsetDecodePolicy
Malformed-input policy used by charset decoders and converters.
CharsetDecoder
Converts units of one charset into Unicode scalar values.
CharsetEncodeError
Error reported by a charset encoder.
CharsetEncodePolicy
Unmappable-input policy used by charset encoders and converters.
CharsetEncoder
Converts Unicode scalar values into units of one charset.
Latin1Codec
Single-byte ISO-8859-1 codec for bytes.
TranscodeProgress
Counts how much work a crate::BufferedTranscoder completed before returning.
Utf8Codec
UTF-8 byte-buffer charset codec.
Utf16ByteCodec
Combined byte-serialized UTF-16 codec.
Utf16U16Codec
Combined UTF-16 u16 code-unit codec.
Utf32ByteCodec
Combined byte-serialized UTF-32 codec.
Utf32U32Codec
Combined UTF-32 u32 code-unit codec.

Enums§

Ascii
Namespace for ASCII character and code point helpers.
ByteOrder
Runtime byte order selector.
CapacityError
Error reported by output-capacity planning APIs.
CharsetConvertError
Error reported while converting between two charsets.
CharsetDecodeErrorKind
Classifies failures detected while decoding encoded units into Unicode text.
CharsetEncodeErrorKind
Classifies failures detected while encoding Unicode text into encoded units.
MalformedAction
Policy used when input units do not form a valid character.
TranscodeStatus
Reports why a crate::BufferedTranscoder stopped converting input.
Unicode
Namespace for Unicode constants and encoding-independent code point helpers.
UnicodeBom
Unicode byte order marks supported by this crate.
UnmappableAction
Policy used when a character cannot be represented by the target charset.
Utf8
Namespace for UTF-8 constants and byte classification helpers.
Utf16
Namespace for UTF-16 constants and code-unit classification helpers.
Utf32
Namespace for UTF-32 constants and code-unit classification helpers.

Traits§

BufferedTranscoder
Converts one logical stream of input units into one logical stream of output units.
CharsetCodec
Charset metadata carried by a low-level Codec<Value = char>.
CharsetEncodeProbe
Encoding-size probe used by crate::CharsetEncoder.
Codec
Encodes and decodes one value or codec quantum against a unit buffer.

Type Aliases§

CharsetDecodeResult
Result type returned by charset decoders.
CharsetEncodeResult
Result type returned by charset encoders.