pub enum ResOperand {
Deref(CellRef),
DoubleDeref(CellRef, i16),
Immediate(BigIntAsHex),
BinOp(BinOpOperand),
}
Variants§
Trait Implementations§
source§impl ApplyApChange for ResOperand
impl ApplyApChange for ResOperand
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 ResOperand
impl Clone for ResOperand
source§fn clone(&self) -> ResOperand
fn clone(&self) -> ResOperand
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 ResOperand
impl Debug for ResOperand
source§impl Display for ResOperand
impl Display for ResOperand
source§impl From<DerefOrImmediate> for ResOperand
impl From<DerefOrImmediate> for ResOperand
source§fn from(x: DerefOrImmediate) -> Self
fn from(x: DerefOrImmediate) -> Self
Converts to this type from the input type.
source§impl<T: Into<BigIntAsHex>> From<T> for ResOperand
impl<T: Into<BigIntAsHex>> From<T> for ResOperand
source§impl PartialEq for ResOperand
impl PartialEq for ResOperand
impl Eq for ResOperand
impl StructuralPartialEq for ResOperand
Auto Trait Implementations§
impl Freeze for ResOperand
impl RefUnwindSafe for ResOperand
impl Send for ResOperand
impl Sync for ResOperand
impl Unpin for ResOperand
impl UnwindSafe for ResOperand
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more