Struct cairo_lang_sierra::program::StatementIdx
source · pub struct StatementIdx(pub usize);
Expand description
Represents the index of a Sierra statement in the Program::statements vector.
Tuple Fields§
§0: usize
Implementations§
source§impl StatementIdx
impl StatementIdx
pub fn next(&self, target: &BranchTarget) -> StatementIdx
Trait Implementations§
source§impl Clone for StatementIdx
impl Clone for StatementIdx
source§fn clone(&self) -> StatementIdx
fn clone(&self) -> StatementIdx
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 StatementIdx
impl Debug for StatementIdx
source§impl Display for StatementIdx
impl Display for StatementIdx
source§impl Hash for StatementIdx
impl Hash for StatementIdx
source§impl PartialEq for StatementIdx
impl PartialEq for StatementIdx
source§fn eq(&self, other: &StatementIdx) -> bool
fn eq(&self, other: &StatementIdx) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for StatementIdx
impl Eq for StatementIdx
impl StructuralEq for StatementIdx
impl StructuralPartialEq for StatementIdx
Auto Trait Implementations§
impl RefUnwindSafe for StatementIdx
impl Send for StatementIdx
impl Sync for StatementIdx
impl Unpin for StatementIdx
impl UnwindSafe for StatementIdx
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.