Skip to main content

Module characters

Module characters 

Source
Expand description

Data structures for reading input text.

Structs§

ByteIterator
Iterator over bytes in a string, converting ^^ encoding to individual bytes (otherwise, we could simply use string.as_bytes().iter()).
DisplayableCharacter
Helper structure to display a Character in a format! or write! macro.
DisplayableCharacterOpt
Helper structure to display an Option<Character> in a format! or write! macro (primarily for the current \escapechar).
StringLineSource
A source of lines of characters generated from a string.

Traits§

Character
A single character in a .tex file; in plain TeX, this is a u8, but in e.g. XeTeX, it is a UTF-8 character.
CharacterMap
A map from characters C:Character to some other type A. For u8, we can simply use [A;256]. For example, a CategoryCodeScheme is a CharacterMap<CategoryCode>.
TextLineSource
A source of lines of characters, e.g. a file or a string.

Type Aliases§

TextLine
A single line of characters.