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
- Definitions
Context - Part of the context relating to user-defined expansions and conditions
- Preprocessed
Field - Preprocessed
Variant - Token
Accumulator - Accumulates tokens, or errors
- Within
Field - Within
Variant
Enums§
- Special
Instructions - Special processing instructions returned by
before_element_hook - Within
Loop - Whether we’re in a loop, and if so, its details
Traits§
- Expand
- Convenience trait providing
item.expand() - Expand
Infallible - Convenience trait providing
fn expand(self), infallible version - Expansion
Output - Expansion output accumulator, for a template lexical context
- Special
Parse Context - Subst
Parse Context - Surrounding lexical context during parsing
- Subst
Parse Context Ext - Extensions/helpers for
SubstParseContext
Type Aliases§
- Allow
Tokens - Inhabited iff this lexical content may expand to arbitrary tokens