pub enum DerefOrImmediate {
Deref(CellRef),
Immediate(BigIntAsHex),
}
Variants§
Deref(CellRef)
Immediate(BigIntAsHex)
Trait Implementations§
Source§impl ApplyApChange for DerefOrImmediate
impl ApplyApChange for DerefOrImmediate
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 DerefOrImmediate
impl Clone for DerefOrImmediate
Source§fn clone(&self) -> DerefOrImmediate
fn clone(&self) -> DerefOrImmediate
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 DerefOrImmediate
impl Debug for DerefOrImmediate
Source§impl Display for DerefOrImmediate
impl Display for DerefOrImmediate
Source§impl From<CellRef> for DerefOrImmediate
impl From<CellRef> for DerefOrImmediate
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 DerefOrImmediate
impl<T: Into<BigIntAsHex>> From<T> for DerefOrImmediate
Source§impl PartialEq for DerefOrImmediate
impl PartialEq for DerefOrImmediate
impl Eq for DerefOrImmediate
impl StructuralPartialEq for DerefOrImmediate
Auto Trait Implementations§
impl Freeze for DerefOrImmediate
impl RefUnwindSafe for DerefOrImmediate
impl Send for DerefOrImmediate
impl Sync for DerefOrImmediate
impl Unpin for DerefOrImmediate
impl UnwindSafe for DerefOrImmediate
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§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