Expand description
A control sequence is a Token of the (usually) form \foo.
We can just use strings to represent them, but there is room for optimization by e.g. interning
them, which requires some more infrastructure to intern and resolve them.
We implement the trait CSHandler for the Unit type (), in case
we don’t want to do any interning and just use Ptr<str>s.
Structs§
- CSInterner
- A
CSHandlerthat interns control sequence names asu32. - CSName
Vec - A
CSNameMapthat uses aVecto store the values forInternedCSName. Since theInternedCSNames are consecutive, we can use aVecinstead of aHMap. - DisplayCS
Name - Utility struct for displaying a control sequence name.
Traits§
- CSHandler
- Handles control sequence names - conversion from/to strings, displaying etc.
- CSName
- The name of a control sequence.
- CSName
Map - How to map control sequence names to e.g.
Commands. - ResolvedCS
Name - A control sequence name that has been interned needs to be resolved again to get the actual name / display it etc.
Type Aliases§
- InternedCS
Name - A control sequence name that has been interned.
Uses consecutive
u32values