Skip to main content

Crate sim_text

Crate sim_text 

Source
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§

CodePointIter
Iterator over code-point chunks represented as exact code-unit strings.
CodeUnitOffset
An offset in the exact UTF-16 code-unit sequence.
CodeUnitRange
A half-open range in the exact UTF-16 code-unit sequence.
CodeUnitString
An exact sequence of UTF-16 code units.
CodeUnitStringReadConstructor
Standard read constructor for CodeUnitString.
CodeUnitStringShape
Shape that accepts exact-unit strings, never ordinary scalar strings.
InvalidSurrogate
Located evidence for the first invalid UTF-16 code unit.
ScalarOffset
An offset in the Unicode scalar sequence.
ScalarRange
A half-open range in the Unicode scalar sequence.

Enums§

CodeUnitStringError
Failure to construct or project an exact code-unit string.
OffsetConversionError
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.