Struct cairo_lang_sierra_generator::pre_sierra::PushValue
source · pub struct PushValue {
pub var: VarId,
pub var_on_stack: VarId,
pub ty: ConcreteTypeId,
pub dup: bool,
}
Expand description
Represents a single element that should be pushed onto the stack as part of Statement::PushValues.
Fields§
§var: VarId
The variable id to push.
var_on_stack: VarId
The variable id on the stack (e.g., the result of store_temp()
).
ty: ConcreteTypeId
The type of the variable.
dup: bool
Indicates whether the variable should be duplicated before it is pushed.
Trait Implementations§
source§impl PartialEq<PushValue> for PushValue
impl PartialEq<PushValue> for PushValue
impl Eq for PushValue
impl StructuralEq for PushValue
impl StructuralPartialEq for PushValue
Auto Trait Implementations§
impl RefUnwindSafe for PushValue
impl Send for PushValue
impl Sync for PushValue
impl Unpin for PushValue
impl UnwindSafe for PushValue
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.