Enum semantic_analyzer::ast::ExpressionValue
source · pub enum ExpressionValue<'a> {
ValueName(ValueName<'a>),
PrimitiveValue(PrimitiveValue),
FunctionCall(FunctionCall<'a>),
StructValue(ExpressionStructValue<'a>),
Expression(Box<Expression<'a>>),
}Expand description
ExpressionValue expression value element of AST.
Basic entity for Expression elements of AST.
Expression value contains entities:
ValueName- value name of expressionPrimitiveValue- primitive value name of expression (for example, it’s numbers: 10, 3.2 and other primitive values)FunctionCall- function call (with parameters) of expressionStructValue- value of expression based onStructtypes.Expression- expression representation (sub branch)
Variants§
ValueName(ValueName<'a>)
Value name of expression
PrimitiveValue(PrimitiveValue)
Primitive value of expression (like numbers etc.)
FunctionCall(FunctionCall<'a>)
Function call (with parameters) of expression
StructValue(ExpressionStructValue<'a>)
Value of expression based on Struct types.
Expression(Box<Expression<'a>>)
Expression representation (sub branch)
Trait Implementations§
source§impl<'a> Clone for ExpressionValue<'a>
impl<'a> Clone for ExpressionValue<'a>
source§fn clone(&self) -> ExpressionValue<'a>
fn clone(&self) -> ExpressionValue<'a>
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<'a> Debug for ExpressionValue<'a>
impl<'a> Debug for ExpressionValue<'a>
source§impl From<ExpressionValue<'_>> for ExpressionValue
impl From<ExpressionValue<'_>> for ExpressionValue
source§fn from(value: ExpressionValue<'_>) -> Self
fn from(value: ExpressionValue<'_>) -> Self
Converts to this type from the input type.
source§impl<'a> PartialEq for ExpressionValue<'a>
impl<'a> PartialEq for ExpressionValue<'a>
source§fn eq(&self, other: &ExpressionValue<'a>) -> bool
fn eq(&self, other: &ExpressionValue<'a>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<'a> StructuralPartialEq for ExpressionValue<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for ExpressionValue<'a>
impl<'a> Send for ExpressionValue<'a>
impl<'a> Sync for ExpressionValue<'a>
impl<'a> Unpin for ExpressionValue<'a>
impl<'a> UnwindSafe for ExpressionValue<'a>
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