Enum jj_cli::template_parser::ExpressionKind
source · pub enum ExpressionKind<'i> {
Identifier(&'i str),
Boolean(bool),
Integer(i64),
String(String),
Concat(Vec<ExpressionNode<'i>>),
FunctionCall(FunctionCallNode<'i>),
MethodCall(MethodCallNode<'i>),
Lambda(LambdaNode<'i>),
AliasExpanded(TemplateAliasId<'i>, Box<ExpressionNode<'i>>),
}Variants§
Identifier(&'i str)
Boolean(bool)
Integer(i64)
String(String)
Concat(Vec<ExpressionNode<'i>>)
FunctionCall(FunctionCallNode<'i>)
MethodCall(MethodCallNode<'i>)
Lambda(LambdaNode<'i>)
AliasExpanded(TemplateAliasId<'i>, Box<ExpressionNode<'i>>)
Identity node to preserve the span in the source template text.
Trait Implementations§
source§impl<'i> Clone for ExpressionKind<'i>
impl<'i> Clone for ExpressionKind<'i>
source§fn clone(&self) -> ExpressionKind<'i>
fn clone(&self) -> ExpressionKind<'i>
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<'i> Debug for ExpressionKind<'i>
impl<'i> Debug for ExpressionKind<'i>
source§impl<'i> PartialEq for ExpressionKind<'i>
impl<'i> PartialEq for ExpressionKind<'i>
source§fn eq(&self, other: &ExpressionKind<'i>) -> bool
fn eq(&self, other: &ExpressionKind<'i>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<'i> StructuralPartialEq for ExpressionKind<'i>
Auto Trait Implementations§
impl<'i> RefUnwindSafe for ExpressionKind<'i>
impl<'i> Send for ExpressionKind<'i>
impl<'i> Sync for ExpressionKind<'i>
impl<'i> Unpin for ExpressionKind<'i>
impl<'i> UnwindSafe for ExpressionKind<'i>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more