Expand description
Exact UTF-16 code-unit text with explicit scalar projections.
CodeUnitString preserves every u16, including lone surrogates and NUL.
It deliberately carries no JavaScript, JVM, codec, or interning policy.
Structs§
- Code
Point Iter - Iterator over code-point chunks represented as exact code-unit strings.
- Code
Unit Offset - An offset in the exact UTF-16 code-unit sequence.
- Code
Unit Range - A half-open range in the exact UTF-16 code-unit sequence.
- Code
Unit String - An exact sequence of UTF-16 code units.
- Code
Unit String Read Constructor - Standard read constructor for
CodeUnitString. - Code
Unit String Shape - Shape that accepts exact-unit strings, never ordinary scalar strings.
- Invalid
Surrogate - Located evidence for the first invalid UTF-16 code unit.
- Scalar
Offset - An offset in the Unicode scalar sequence.
- Scalar
Range - A half-open range in the Unicode scalar sequence.
Enums§
- Code
Unit String Error - Failure to construct or project an exact code-unit string.
- Offset
Conversion Error - Failure to convert between bounded offset domains.
Constants§
- CODE_
UNIT_ STRING_ SYMBOL - Stable class/tag symbol used by the standard read-construct representation.
- MAX_
CODE_ UNITS - The largest code-unit allocation representable by Rust’s collection APIs.
Functions§
- code_
unit_ string_ browse - Browse table for an exact-unit string.
- code_
unit_ string_ from_ expr - Recover exact code units from the tagged codec-neutral representation.
- code_
unit_ string_ to_ expr - Project exact code units into the codec-neutral expression graph.
- scalar_
text - Convert for a scalar-text-only codec, refusing at the exact bad unit.