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