Struct semantic_analyzer::types::ConstantExpression
source · pub struct ConstantExpression {
pub value: ConstantValue,
pub operation: Option<(ExpressionOperations, Box<ConstantExpression>)>,
}
Fields§
§value: ConstantValue
§operation: Option<(ExpressionOperations, Box<ConstantExpression>)>
Trait Implementations§
source§impl Clone for ConstantExpression
impl Clone for ConstantExpression
source§fn clone(&self) -> ConstantExpression
fn clone(&self) -> ConstantExpression
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 ConstantExpression
impl Debug for ConstantExpression
source§impl From<ConstantExpression<'_>> for ConstantExpression
impl From<ConstantExpression<'_>> for ConstantExpression
source§fn from(value: ConstantExpression<'_>) -> Self
fn from(value: ConstantExpression<'_>) -> Self
Converts to this type from the input type.
source§impl PartialEq<ConstantExpression> for ConstantExpression
impl PartialEq<ConstantExpression> for ConstantExpression
source§fn eq(&self, other: &ConstantExpression) -> bool
fn eq(&self, other: &ConstantExpression) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ConstantExpression
Auto Trait Implementations§
impl RefUnwindSafe for ConstantExpression
impl Send for ConstantExpression
impl Sync for ConstantExpression
impl Unpin for ConstantExpression
impl UnwindSafe for ConstantExpression
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