Struct fv_template::ct::Template [−][src]
pub struct Template { /* fields omitted */ }Expand description
A compile-time field value template.
Implementations
Parse a template from a TokenStream.
The TokenStream is typically all the tokens given to a macro.
Field values that appear before the template string literal.
Field values that appear within the template string literal.
Field values that appear after the template string literal.
Generate a TokenStream that constructs a runtime representation of this template.
pub fn to_rt_tokens_with_visitor(
&self,
base: TokenStream,
visitor: impl Visitor
) -> TokenStream
pub fn to_rt_tokens_with_visitor(
&self,
base: TokenStream,
visitor: impl Visitor
) -> TokenStreamGenerate a TokenStream the constructs a runtime representation of this template.
The Visitor has a chance to modify fragments of the template during code generation.
Auto Trait Implementations
impl RefUnwindSafe for Templateimpl UnwindSafe for Template