Struct cairo_lang_lowering::objects::StatementMatchExtern
source · pub struct StatementMatchExtern {
pub function: FunctionId,
pub inputs: Vec<VariableId>,
pub arms: Vec<(ConcreteVariant, BlockId)>,
pub outputs: Vec<VariableId>,
}
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<VariableId>
Living variables in current scope to move to the function, as arguments.
arms: Vec<(ConcreteVariant, BlockId)>
Match arms. All blocks should have the same rets. Order must be identical to the order in the definition of the enum.
outputs: Vec<VariableId>
New variables to be introduced into the current scope from the arm outputs.
Trait Implementations§
source§impl Clone for StatementMatchExtern
impl Clone for StatementMatchExtern
source§fn clone(&self) -> StatementMatchExtern
fn clone(&self) -> StatementMatchExtern
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 StatementMatchExtern
impl Debug for StatementMatchExtern
source§impl DebugWithDb<LoweredFormatter<'_>> for StatementMatchExtern
impl DebugWithDb<LoweredFormatter<'_>> for StatementMatchExtern
source§impl PartialEq<StatementMatchExtern> for StatementMatchExtern
impl PartialEq<StatementMatchExtern> for StatementMatchExtern
source§fn eq(&self, other: &StatementMatchExtern) -> bool
fn eq(&self, other: &StatementMatchExtern) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for StatementMatchExtern
impl StructuralEq for StatementMatchExtern
impl StructuralPartialEq for StatementMatchExtern
Auto Trait Implementations§
impl RefUnwindSafe for StatementMatchExtern
impl Send for StatementMatchExtern
impl Sync for StatementMatchExtern
impl Unpin for StatementMatchExtern
impl UnwindSafe for StatementMatchExtern
Blanket Implementations§
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.