Skip to main content

Crate qubit_text_codec

Crate qubit_text_codec 

Source
Expand description

§Qubit Text Codec

Low-level Unicode constants, character classification helpers, and text codec primitives for UTF-8, UTF-16, UTF-32, and ASCII-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.
CharsetDecoder
Converts units of one charset into Unicode scalar values.
CharsetEncodeError
Error reported by a charset encoder.
CharsetEncoder
Converts Unicode scalar values into units of one charset.
CoderProgress
Counts how much work a crate::Coder completed before returning.
Latin1Codec
Single-byte ISO-8859-1 codec for bytes.
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.
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.
CoderStatus
Reports why a crate::Coder stopped converting input.
DecodeStatus
Non-error status reported after inspecting a decoder input prefix.
MalformedAction
Policy used when input units do not form a valid character.
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§

CharsetCodec
Low-level charset algorithm for one storage-unit representation.
Coder
Converts one sequence of code units into another sequence of code units.

Type Aliases§

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