Enum cairo_lang_sierra::simulation::value::CoreValue
source · pub enum CoreValue {
Show 16 variants
EcPoint(BigInt, BigInt),
Felt252(BigInt),
GasBuiltin(i64),
RangeCheck,
Uint8(u8),
Uint16(u16),
Uint32(u32),
Uint64(u64),
Uint128(u128),
NonZero(Box<CoreValue>),
Ref(Box<CoreValue>),
Array(Vec<CoreValue>),
Dict(HashMap<BigInt, CoreValue>),
Enum {
value: Box<CoreValue>,
index: usize,
},
Struct(Vec<CoreValue>),
Uninitialized,
}
Expand description
The logical value of a variable for Sierra simulation.
Variants§
EcPoint(BigInt, BigInt)
Felt252(BigInt)
GasBuiltin(i64)
RangeCheck
Uint8(u8)
Uint16(u16)
Uint32(u32)
Uint64(u64)
Uint128(u128)
NonZero(Box<CoreValue>)
Ref(Box<CoreValue>)
Array(Vec<CoreValue>)
Dict(HashMap<BigInt, CoreValue>)
Enum
Struct(Vec<CoreValue>)
Uninitialized
Trait Implementations§
source§impl PartialEq for CoreValue
impl PartialEq for CoreValue
impl Eq for CoreValue
impl StructuralEq for CoreValue
impl StructuralPartialEq for CoreValue
Auto Trait Implementations§
impl RefUnwindSafe for CoreValue
impl Send for CoreValue
impl Sync for CoreValue
impl Unpin for CoreValue
impl UnwindSafe for CoreValue
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 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.§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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.