Struct cairo_lang_sierra_generator::pre_sierra::Function
source · pub struct Function {
pub id: FunctionId,
pub body: Vec<StatementWithLocation>,
pub entry_point: LabelId,
pub parameters: Vec<Param>,
pub ret_types: Vec<ConcreteTypeId>,
}
Expand description
Represents a compiled function before the label-resolution phase (pre-sierra).
Fields§
§id: FunctionId
The source function which was compiled.
body: Vec<StatementWithLocation>
The body of the function.
entry_point: LabelId
A label pointing to the first instruction of the function.
parameters: Vec<Param>
The parameters for the function.
ret_types: Vec<ConcreteTypeId>
The return types from the function.
Trait Implementations§
source§impl PartialEq for Function
impl PartialEq for Function
impl Eq for Function
impl StructuralPartialEq for Function
Auto Trait Implementations§
impl RefUnwindSafe for Function
impl Send for Function
impl Sync for Function
impl Unpin for Function
impl UnwindSafe for Function
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 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.§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.