Struct cairo_lang_casm::operand::CellRef
source · pub struct CellRef {
pub register: Register,
pub offset: i16,
}
Expand description
Represents an operand of the form [reg + offset].
Fields§
§register: Register
§offset: i16
Trait Implementations§
source§impl ApplyApChange for CellRef
impl ApplyApChange for CellRef
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 From<CellRef> for DerefOrImmediate
impl From<CellRef> for DerefOrImmediate
source§impl PartialEq for CellRef
impl PartialEq for CellRef
impl Copy for CellRef
impl Eq for CellRef
impl StructuralEq for CellRef
impl StructuralPartialEq for CellRef
Auto Trait Implementations§
impl RefUnwindSafe for CellRef
impl Send for CellRef
impl Sync for CellRef
impl Unpin for CellRef
impl UnwindSafe for CellRef
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.