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 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 Debug for ExpressionValue
impl Debug for ExpressionValue
source§impl<E: ExtendedExpression> From<ExpressionValue<'_, E>> for ExpressionValue
impl<E: ExtendedExpression> From<ExpressionValue<'_, E>> for ExpressionValue
source§fn from(value: ExpressionValue<'_, E>) -> Self
fn from(value: ExpressionValue<'_, E>) -> Self
Converts to this type from the input type.
source§impl PartialEq for ExpressionValue
impl PartialEq for ExpressionValue
source§fn eq(&self, other: &ExpressionValue) -> bool
fn eq(&self, other: &ExpressionValue) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl ToString for ExpressionValue
impl ToString for ExpressionValue
impl StructuralPartialEq for ExpressionValue
Auto Trait Implementations§
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