Module syntax

Module syntax 

Source
Expand description

Template syntax

This module contains:

  • The types representing a parsed template.
  • The parse methods.

Re-exports§

pub use SubstDetails as SD;
pub use TemplateElement as TE;

Macros§

impl_parse_one_subkeyword 🔒
Implements ParseOneSubkeyword for the use of ParseUsingSubkeywords
te_extract_when 🔒
Matches $te looking for SD::when

Structs§

Argument
ARG as per “Named and positional template arguments” in the reference.
DbgDumpRequest
Definition
DefinitionName
ExplicitError
ExplicitErrorNamedArgs 🔒
InvalidDefinitionName
Error returned by DefinitionName::try_from(syn::Ident)
RawAttrEntry
RepeatedTemplate
Subst
SubstIf
SubstVPat
SubstVType
Template
TemplateWithWhens
TopTemplate

Enums§

DefinitionBody
OrigDollarHandled
Proof token that deescape_orig_dollar was called
OrigDollarHandledDiscriminants
Auto-generated discriminant enum variants
RawAttr
SubstDetails
Enum representing nature and payload of a substitution
SubstVis
Whether this is ${tvis} or ${fvis}
TemplateElement

Traits§

ParseOneSubkeyword
ParseUsingSubkeywords
Parse Self using 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.
DefCondBody