Skip to main content

Module common

Module common 

Source
Expand description

Common abstractions that are useful at various stages of Core processing

Modules§

arena
An arena for interning strings (global, mutable, single thread only)
cleaners
color
def_parser
dimension
error
float
font
glue
ligature
local_assignments
Perl-style local assignments (dynamic scope)
locator
mathchar
model
mudimension
muglue
number
numeric_ops
object
pair
relaxng
Native Rust port of LaTeXML’s LaTeXML::Common::Model::RelaxNG.
store
xml

Structs§

Config

Enums§

DataSize
DigestionMode
InputFormat
OutputFormat

Functions§

native_dispatcher
Lift a native (compiled-in) binding dispatcher — one with no source file to name — into a ResolvingBindingDispatcher: a successful load reports None source, so the caller announces it by its module-proxy name. Pairs with the runtime rhai_dispatch tier, which reports the real .rhai path.

Type Aliases§

BindingDispatcher
A compiled-binding dispatcher: given a request name, either declines (None, so the next resolution tier is tried) or reports the load outcome (Some(Ok(())) / Some(Err(_))). It resolves compiled-in bindings, which have no source file, so it carries no path — the load note announces such a binding by its module-proxy name (<name>_sty.rs).
BindingSource
The on-disk source a binding was loaded from, when it has one: Some(path) for a runtime file binding (e.g. a .rhai script), None for a compiled-in binding. Threaded through the resolving dispatcher’s result so the “(Loading …)” note can name the real path (#560) — rather than a State side-channel.
LabelMappingHook
Perl: LABEL_MAPPING_HOOK => sub { ($label, $ctr, $norefnum) => ($refnum, $id) } Returns (optional refnum string, optional id string)
ResolvingBindingDispatcher
The resolving binding dispatcher installed as the single, ordered resolution chain (see converter::install_binding_dispatch). Unlike a bare BindingDispatcher, a successful load reports the BindingSource it loaded from, so a file binding announces its real path and a compiled one its proxy name.