Module framework

Module framework 

Source
Expand description

Core types and traits for parsing and expansion

Also re-exports the names that the implementation wants.

Should be included with use super::framework::*, not crate::, so that it works with tests/directly.rs too.

Re-exports§

pub use super::prelude::*;
pub use super::boolean::*;
pub use super::repeat::*;
pub use super::syntax::*;

Structs§

Context
Context during expansion
Definitions
DefinitionsContext
Part of the context relating to user-defined expansions and conditions
PreprocessedField
PreprocessedVariant
TokenAccumulator
Accumulates tokens, or errors
WithinField
WithinVariant

Enums§

SpecialInstructions
Special processing instructions returned by before_element_hook
WithinLoop
Whether we’re in a loop, and if so, its details

Traits§

Expand
Convenience trait providing item.expand()
ExpandInfallible
Convenience trait providing fn expand(self), infallible version
ExpansionOutput
Expansion output accumulator, for a template lexical context
SpecialParseContext
SubstParseContext
Surrounding lexical context during parsing
SubstParseContextExt
Extensions/helpers for SubstParseContext

Type Aliases§

AllowTokens
Inhabited iff this lexical content may expand to arbitrary tokens