pub struct ConstantExpression {
pub value: ConstantValue,
pub operation: Option<(ExpressionOperations, Box<ConstantExpression>)>,
}
Expand description
Constant expression represent expression operation between constant values, and represent flat tree
Fields§
§value: ConstantValue
Constant value for expression operation
operation: Option<(ExpressionOperations, Box<ConstantExpression>)>
Optional expression operation and next constant expression entry point
Trait Implementations§
Source§impl Clone for ConstantExpression
impl Clone for ConstantExpression
Source§fn clone(&self) -> ConstantExpression
fn clone(&self) -> ConstantExpression
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 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 for ConstantExpression
impl PartialEq for ConstantExpression
impl StructuralPartialEq for ConstantExpression
Auto Trait Implementations§
impl Freeze for ConstantExpression
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