Struct cairo_lang_lowering::objects::MatchEnumInfo
source · pub struct MatchEnumInfo {
pub concrete_enum_id: ConcreteEnumId,
pub input: VariableId,
pub arms: Vec<MatchArm>,
}
Expand description
A statement that matches an enum, and “calls” a possibly different block for each branch.
Fields§
§concrete_enum_id: ConcreteEnumId
§input: VariableId
A living variable in current scope to match on.
arms: Vec<MatchArm>
Match arms. All blocks should have the same rets. Order must be identical to the order in the definition of the enum.
Trait Implementations§
source§impl Clone for MatchEnumInfo
impl Clone for MatchEnumInfo
source§fn clone(&self) -> MatchEnumInfo
fn clone(&self) -> MatchEnumInfo
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 MatchEnumInfo
impl Debug for MatchEnumInfo
source§impl DebugWithDb<LoweredFormatter<'_>> for MatchEnumInfo
impl DebugWithDb<LoweredFormatter<'_>> for MatchEnumInfo
source§impl PartialEq<MatchEnumInfo> for MatchEnumInfo
impl PartialEq<MatchEnumInfo> for MatchEnumInfo
source§fn eq(&self, other: &MatchEnumInfo) -> bool
fn eq(&self, other: &MatchEnumInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for MatchEnumInfo
impl StructuralEq for MatchEnumInfo
impl StructuralPartialEq for MatchEnumInfo
Auto Trait Implementations§
impl RefUnwindSafe for MatchEnumInfo
impl Send for MatchEnumInfo
impl Sync for MatchEnumInfo
impl Unpin for MatchEnumInfo
impl UnwindSafe for MatchEnumInfo
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.