Struct cairo_lang_lowering::objects::MatchArm
source · pub struct MatchArm {
pub variant_id: ConcreteVariant,
pub block_id: BlockId,
pub var_ids: Vec<VariableId>,
}
Expand description
An arm of a match statement.
Fields§
§variant_id: ConcreteVariant
The id of the arm variant.
block_id: BlockId
The block_id where the relevant arm is implemented.
var_ids: Vec<VariableId>
The list of variable ids introduced in this arm.
Trait Implementations§
source§impl DebugWithDb<LoweredFormatter<'_>> for MatchArm
impl DebugWithDb<LoweredFormatter<'_>> for MatchArm
source§impl PartialEq<MatchArm> for MatchArm
impl PartialEq<MatchArm> for MatchArm
impl Eq for MatchArm
impl StructuralEq for MatchArm
impl StructuralPartialEq for MatchArm
Auto Trait Implementations§
impl RefUnwindSafe for MatchArm
impl Send for MatchArm
impl Sync for MatchArm
impl Unpin for MatchArm
impl UnwindSafe for MatchArm
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.