pub enum ExpressionValue {
ValueName(ValueName),
PrimitiveValue(PrimitiveValue),
StructValue(ExpressionStructValue),
FunctionCall(FunctionCall),
Expression(Box<Expression>),
ExtendedExpression(ExtendedExpressionValue),
}
Expand description
Expression value kinds:
- value name - initialized through let-binding
- primitive value - most primitive value, like integers etc.
- struct value - value of struct type
- function call - call of function with params
- expression - contains other expression
Variants§
ValueName(ValueName)
PrimitiveValue(PrimitiveValue)
StructValue(ExpressionStructValue)
FunctionCall(FunctionCall)
Expression(Box<Expression>)
ExtendedExpression(ExtendedExpressionValue)
Trait Implementations§
Source§impl Clone for ExpressionValue
impl Clone for ExpressionValue
Source§fn clone(&self) -> ExpressionValue
fn clone(&self) -> ExpressionValue
Returns a duplicate 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 Debug for ExpressionValue
impl Debug for ExpressionValue
Source§impl Display for ExpressionValue
impl Display for ExpressionValue
Source§impl<I: SemanticContextInstruction, E: ExtendedExpression<I>> From<ExpressionValue<'_, I, E>> for ExpressionValue
impl<I: SemanticContextInstruction, E: ExtendedExpression<I>> From<ExpressionValue<'_, I, E>> for ExpressionValue
Source§fn from(value: ExpressionValue<'_, I, E>) -> Self
fn from(value: ExpressionValue<'_, I, E>) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ExpressionValue
impl PartialEq for ExpressionValue
impl StructuralPartialEq for ExpressionValue
Auto Trait Implementations§
impl Freeze for ExpressionValue
impl RefUnwindSafe for ExpressionValue
impl Send for ExpressionValue
impl Sync for ExpressionValue
impl Unpin for ExpressionValue
impl UnwindSafe for ExpressionValue
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