Enum semantic_analyzer::ast::ExpressionValue
source · pub enum ExpressionValue<'a> {
ValueName(ValueName<'a>),
PrimitiveValue(PrimitiveValue),
FunctionCall(FunctionCall<'a>),
StructValue(StructValue<'a>),
Expression(Box<Expression<'a>>),
}
Variants§
ValueName(ValueName<'a>)
PrimitiveValue(PrimitiveValue)
FunctionCall(FunctionCall<'a>)
StructValue(StructValue<'a>)
Expression(Box<Expression<'a>>)
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<ExpressionValue<'a>> for ExpressionValue<'a>
impl<'a> PartialEq<ExpressionValue<'a>> 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