Struct cairo_lang_lowering::objects::MatchExternInfo
source · pub struct MatchExternInfo {
pub function: FunctionId,
pub inputs: Vec<VarUsage>,
pub arms: Vec<MatchArm>,
pub location: LocationId,
}
Expand description
A statement that calls an extern function with branches, and “calls” a possibly different block for each branch.
Fields§
§function: FunctionId
A concrete external function to call.
inputs: Vec<VarUsage>
Living variables in current scope to move to the function, as arguments.
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.
location: LocationId
Location for the call.
Trait Implementations§
source§impl Clone for MatchExternInfo
impl Clone for MatchExternInfo
source§fn clone(&self) -> MatchExternInfo
fn clone(&self) -> MatchExternInfo
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 MatchExternInfo
impl Debug for MatchExternInfo
source§impl DebugWithDb<LoweredFormatter<'_>> for MatchExternInfo
impl DebugWithDb<LoweredFormatter<'_>> for MatchExternInfo
source§impl PartialEq<MatchExternInfo> for MatchExternInfo
impl PartialEq<MatchExternInfo> for MatchExternInfo
source§fn eq(&self, other: &MatchExternInfo) -> bool
fn eq(&self, other: &MatchExternInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for MatchExternInfo
impl StructuralEq for MatchExternInfo
impl StructuralPartialEq for MatchExternInfo
Auto Trait Implementations§
impl RefUnwindSafe for MatchExternInfo
impl Send for MatchExternInfo
impl Sync for MatchExternInfo
impl Unpin for MatchExternInfo
impl UnwindSafe for MatchExternInfo
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.