Struct balena_temen::ast::MathExpression
source · pub struct MathExpression {
pub lhs: Box<Expression>,
pub rhs: Box<Expression>,
pub operator: MathOperator,
}
Expand description
Math expression
Fields
lhs: Box<Expression>
A left-hand side
rhs: Box<Expression>
A right-hand side
operator: MathOperator
An operator
Implementations
sourceimpl MathExpression
impl MathExpression
sourcepub fn new(
lhs: Expression,
rhs: Expression,
operator: MathOperator
) -> MathExpression
pub fn new(
lhs: Expression,
rhs: Expression,
operator: MathOperator
) -> MathExpression
Creates new mathematical expression
Arguments
lhs
- A left-hand siderhs
- A right-hand sideoperator
- An operator
Trait Implementations
sourceimpl Clone for MathExpression
impl Clone for MathExpression
sourcefn clone(&self) -> MathExpression
fn clone(&self) -> MathExpression
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for MathExpression
impl Debug for MathExpression
sourceimpl PartialEq<MathExpression> for MathExpression
impl PartialEq<MathExpression> for MathExpression
sourcefn eq(&self, other: &MathExpression) -> bool
fn eq(&self, other: &MathExpression) -> bool
impl StructuralPartialEq for MathExpression
Auto Trait Implementations
impl RefUnwindSafe for MathExpression
impl Send for MathExpression
impl Sync for MathExpression
impl Unpin for MathExpression
impl UnwindSafe for MathExpression
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more