Module introspection

Source
Expand description

Interaction between document parts.

Structs§

Counter
Counts through pages, elements, and more.
CounterDisplayElem
Executes a display of a counter.
CounterState
Counts through elements with different levels.
Introspector
Can be queried for elements and their positions.
Location
Identifies an element in the document.
Locator
Provides locations for elements in the document.
LocatorLink
A locator can be linked to this type to only access information across the memoization boundary on-demand, improving the cache hit chance.
ManualPageCounter
An specialized handler of the page counter that tracks both the physical and the logical page counter.
MetadataElem
Exposes a value to the query system without producing visible content.
SplitLocator
A type that generates unique sublocators.
State
Manages stateful parts of your document.
TagElem
Holds a tag for a locatable element that was realized.

Enums§

CounterKey
Identifies a counter.
CounterUpdate
An update to perform on a counter.
StateUpdate
An update to perform on a state.
Tag
Marks the start or end of a locatable element.

Traits§

Count
Elements that have special counting behaviour.
Locatable
Makes this element as locatable through the introspector.
Unqueriable
Marks this element as not being queryable even though it is locatable for internal reasons.

Functions§

define
Hook up all introspection definitions.
here
Provides the current location in the document.
locate
Determines the location of an element in the document.
query
Finds elements in the document.