Expand description
Template syntax
This module contains:
- The types representing a parsed template.
- The
parsemethods.
Re-exports§
pub use SubstDetails as SD;pub use TemplateElement as TE;
Macros§
- impl_
parse_ 🔒one_ subkeyword - Implements
ParseOneSubkeywordfor the use ofParseUsingSubkeywords - te_
extract_ 🔒when - Matches
$telooking forSD::when
Structs§
- Argument
ARGas per “Named and positional template arguments” in the reference.- DbgDump
Request - Definition
- Definition
Name - Explicit
Error - Explicit
Error 🔒Named Args - Invalid
Definition Name - Error returned by
DefinitionName::try_from(syn::Ident) - RawAttr
Entry - Repeated
Template - Subst
- SubstIf
- SubstV
Pat - SubstV
Type - Template
- Template
With Whens - TopTemplate
Enums§
- Definition
Body - Orig
Dollar Handled - Proof token that
deescape_orig_dollarwas called - Orig
Dollar Handled Discriminants - Auto-generated discriminant enum variants
- RawAttr
- Subst
Details - Enum representing nature and payload of a substitution
- Subst
Vis - Whether this is
${tvis}or${fvis} - Template
Element
Traits§
- Parse
OneSubkeyword - Parse
Using Subkeywords - Parse
Selfusing named subkeyword arguments within the${...}
Functions§
- deescape_
orig_ dollar - Skip over any
orig_dollar - preprocess_
attrs - preprocess_
fields - subkw_
parse_ 🔒store - Helper for
impl_parse_subkeywords!; parse and store subkw argument
Type Aliases§
- Condition
- A condition, as found in
if. - DefCond
Body