Struct balena_temen::ast::LogicalExpression
source · pub struct LogicalExpression {
pub lhs: Box<Expression>,
pub rhs: Box<Expression>,
pub operator: LogicalOperator,
}
Expand description
Logical expression
Fields
lhs: Box<Expression>
A left-hand side
rhs: Box<Expression>
A right-hand side
operator: LogicalOperator
An operator
Implementations
sourceimpl LogicalExpression
impl LogicalExpression
sourcepub fn new(
lhs: Expression,
rhs: Expression,
operator: LogicalOperator
) -> LogicalExpression
pub fn new(
lhs: Expression,
rhs: Expression,
operator: LogicalOperator
) -> LogicalExpression
Creates new logical expression
Arguments
lhs
- A left-hand siderhs
- A right-hand sideoperator
- An operator
Trait Implementations
sourceimpl Clone for LogicalExpression
impl Clone for LogicalExpression
sourcefn clone(&self) -> LogicalExpression
fn clone(&self) -> LogicalExpression
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 LogicalExpression
impl Debug for LogicalExpression
sourceimpl PartialEq<LogicalExpression> for LogicalExpression
impl PartialEq<LogicalExpression> for LogicalExpression
sourcefn eq(&self, other: &LogicalExpression) -> bool
fn eq(&self, other: &LogicalExpression) -> bool
impl StructuralPartialEq for LogicalExpression
Auto Trait Implementations
impl RefUnwindSafe for LogicalExpression
impl Send for LogicalExpression
impl Sync for LogicalExpression
impl Unpin for LogicalExpression
impl UnwindSafe for LogicalExpression
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