Enum cairo_lang_casm::operand::DerefOrImmediate
source · 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 Decode for DerefOrImmediate
impl Decode for DerefOrImmediate
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy ) -> Result<Self, Error>
Attempt to deserialise the value from input.
source§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>( input: &mut I, dst: &mut MaybeUninit<Self> ) -> Result<DecodeFinished, Error>where I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
source§impl<'de> Deserialize<'de> for DerefOrImmediate
impl<'de> Deserialize<'de> for DerefOrImmediate
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for DerefOrImmediate
impl Display for DerefOrImmediate
source§impl Encode for DerefOrImmediate
impl Encode for DerefOrImmediate
source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )
Convert self to a slice and append it to the destination.
source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
source§fn using_encoded<R, F>(&self, f: F) -> Rwhere
F: FnOnce(&[u8]) -> R,
fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.
source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
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 JsonSchema for DerefOrImmediate
impl JsonSchema for DerefOrImmediate
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl PartialEq<DerefOrImmediate> for DerefOrImmediate
impl PartialEq<DerefOrImmediate> for DerefOrImmediate
source§fn eq(&self, other: &DerefOrImmediate) -> bool
fn eq(&self, other: &DerefOrImmediate) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for DerefOrImmediate
impl Serialize for DerefOrImmediate
impl EncodeLike<DerefOrImmediate> for DerefOrImmediate
impl Eq for DerefOrImmediate
impl StructuralEq for DerefOrImmediate
impl StructuralPartialEq for DerefOrImmediate
Auto Trait Implementations§
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> DecodeLimit for Twhere
T: Decode,
impl<T> DecodeLimit for Twhere T: Decode,
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.