Struct cairo_lang_lowering::objects::MatchArm
source · pub struct MatchArm {
pub arm_selector: MatchArmSelector,
pub block_id: BlockId,
pub var_ids: Vec<VariableId>,
}
Expand description
An arm of a match statement.
Fields§
§arm_selector: MatchArmSelector
The selector of the arm.
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 for MatchArm
impl PartialEq 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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§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 Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.