Struct quil_rs::expression::InfixExpression
source · pub struct InfixExpression {
pub left: Box<Expression>,
pub operator: InfixOperator,
pub right: Box<Expression>,
}
Fields§
§left: Box<Expression>
§operator: InfixOperator
§right: Box<Expression>
Implementations§
source§impl InfixExpression
impl InfixExpression
pub fn new( left: Box<Expression>, operator: InfixOperator, right: Box<Expression> ) -> Self
Trait Implementations§
source§impl Clone for InfixExpression
impl Clone for InfixExpression
source§fn clone(&self) -> InfixExpression
fn clone(&self) -> InfixExpression
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 InfixExpression
impl Debug for InfixExpression
source§impl Hash for InfixExpression
impl Hash for InfixExpression
source§impl PartialEq for InfixExpression
impl PartialEq for InfixExpression
source§fn eq(&self, other: &InfixExpression) -> bool
fn eq(&self, other: &InfixExpression) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for InfixExpression
impl StructuralEq for InfixExpression
impl StructuralPartialEq for InfixExpression
Auto Trait Implementations§
impl RefUnwindSafe for InfixExpression
impl Send for InfixExpression
impl Sync for InfixExpression
impl Unpin for InfixExpression
impl UnwindSafe for InfixExpression
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.