Struct semantic_analyzer::ast::Expression
source · pub struct Expression<'a, E: ExtendedExpression> {
pub expression_value: ExpressionValue<'a, E>,
pub operation: Option<(ExpressionOperations, Box<Expression<'a, E>>)>,
}Expand description
Expression element of AST is basic entity that
represent expression, and optionally expression with optional
operations with other expression. So it can be expression tree
with expression operations.
Fields§
§expression_value: ExpressionValue<'a, E>Expression value itself
operation: Option<(ExpressionOperations, Box<Expression<'a, E>>)>Optional expression operation with other expression value
Trait Implementations§
source§impl<'a, E: Clone + ExtendedExpression> Clone for Expression<'a, E>
impl<'a, E: Clone + ExtendedExpression> Clone for Expression<'a, E>
source§fn clone(&self) -> Expression<'a, E>
fn clone(&self) -> Expression<'a, E>
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, E: Debug + ExtendedExpression> Debug for Expression<'a, E>
impl<'a, E: Debug + ExtendedExpression> Debug for Expression<'a, E>
source§impl<E: ExtendedExpression> From<Expression<'_, E>> for Expression
impl<E: ExtendedExpression> From<Expression<'_, E>> for Expression
source§fn from(value: Expression<'_, E>) -> Self
fn from(value: Expression<'_, E>) -> Self
Converts to this type from the input type.
source§impl<E: ExtendedExpression> GetLocation for Expression<'_, E>
impl<E: ExtendedExpression> GetLocation for Expression<'_, E>
fn location(&self) -> CodeLocation
source§impl<'a, E: PartialEq + ExtendedExpression> PartialEq for Expression<'a, E>
impl<'a, E: PartialEq + ExtendedExpression> PartialEq for Expression<'a, E>
source§fn eq(&self, other: &Expression<'a, E>) -> bool
fn eq(&self, other: &Expression<'a, E>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<'a, E: ExtendedExpression> StructuralPartialEq for Expression<'a, E>
Auto Trait Implementations§
impl<'a, E> RefUnwindSafe for Expression<'a, E>where
E: RefUnwindSafe,
impl<'a, E> Send for Expression<'a, E>where
E: Send,
impl<'a, E> Sync for Expression<'a, E>where
E: Sync,
impl<'a, E> Unpin for Expression<'a, E>
impl<'a, E> UnwindSafe for Expression<'a, E>where
E: UnwindSafe,
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