Struct cairo_lang_casm::operand::BinOpOperand
source · pub struct BinOpOperand {
pub op: Operation,
pub a: CellRef,
pub b: DerefOrImmediate,
}Fields§
§op: Operation§a: CellRef§b: DerefOrImmediateTrait Implementations§
source§impl ApplyApChange for BinOpOperand
impl ApplyApChange for BinOpOperand
source§fn apply_known_ap_change(self, ap_change: usize) -> Option<Self>
fn apply_known_ap_change(self, ap_change: usize) -> Option<Self>
Attempts to apply ap change, fail on overflow only.
source§fn can_apply_unknown(&self) -> bool
fn can_apply_unknown(&self) -> bool
Can unknown ap change be applied.
source§fn apply_ap_change(self, ap_change: ApChange) -> Result<Self, ApChangeError>
fn apply_ap_change(self, ap_change: ApChange) -> Result<Self, ApChangeError>
Attempts to apply ap change.
source§fn unchecked_apply_known_ap_change(self, ap_change: usize) -> Self
fn unchecked_apply_known_ap_change(self, ap_change: usize) -> Self
Same as Self::apply_known_ap_change but unchecked.
source§impl Clone for BinOpOperand
impl Clone for BinOpOperand
source§fn clone(&self) -> BinOpOperand
fn clone(&self) -> BinOpOperand
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 BinOpOperand
impl Debug for BinOpOperand
source§impl Display for BinOpOperand
impl Display for BinOpOperand
source§impl PartialEq for BinOpOperand
impl PartialEq for BinOpOperand
source§fn eq(&self, other: &BinOpOperand) -> bool
fn eq(&self, other: &BinOpOperand) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for BinOpOperand
impl StructuralEq for BinOpOperand
impl StructuralPartialEq for BinOpOperand
Auto Trait Implementations§
impl RefUnwindSafe for BinOpOperand
impl Send for BinOpOperand
impl Sync for BinOpOperand
impl Unpin for BinOpOperand
impl UnwindSafe for BinOpOperand
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.