pub enum TemplateLiteralPart<T: ASTNode> {
Static(String),
Dynamic(Box<T>),
}
Variants§
Trait Implementations§
source§impl<T: Clone + ASTNode> Clone for TemplateLiteralPart<T>
impl<T: Clone + ASTNode> Clone for TemplateLiteralPart<T>
source§fn clone(&self) -> TemplateLiteralPart<T>
fn clone(&self) -> TemplateLiteralPart<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: PartialEq + ASTNode> PartialEq<TemplateLiteralPart<T>> for TemplateLiteralPart<T>
impl<T: PartialEq + ASTNode> PartialEq<TemplateLiteralPart<T>> for TemplateLiteralPart<T>
source§fn eq(&self, other: &TemplateLiteralPart<T>) -> bool
fn eq(&self, other: &TemplateLiteralPart<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T: ASTNode + SelfRustTokenize> SelfRustTokenize for TemplateLiteralPart<T>
impl<T: ASTNode + SelfRustTokenize> SelfRustTokenize for TemplateLiteralPart<T>
fn append_to_token_stream(&self, token_stream: &mut TokenStream)
source§fn to_tokens(&self) -> TokenStream
fn to_tokens(&self) -> TokenStream
Returns the tokens used to construct self