pub struct IrFunction {
pub name: String,
pub return_type: SemanticType,
pub parameters: Vec<SemanticType>,
pub locals: Vec<SemanticType>,
pub blocks: Vec<IrBlock>,
}Expand description
One lowered function.
Fields§
§name: StringFunction name.
return_type: SemanticTypeReturn type.
parameters: Vec<SemanticType>Parameter types in declaration order.
locals: Vec<SemanticType>Local types by slot.
blocks: Vec<IrBlock>Basic blocks in layout order.
Trait Implementations§
Source§impl Clone for IrFunction
impl Clone for IrFunction
Source§fn clone(&self) -> IrFunction
fn clone(&self) -> IrFunction
Returns a duplicate 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 IrFunction
impl Debug for IrFunction
Source§impl<'de> Deserialize<'de> for IrFunction
impl<'de> Deserialize<'de> for IrFunction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for IrFunction
impl PartialEq for IrFunction
Source§impl Serialize for IrFunction
impl Serialize for IrFunction
impl StructuralPartialEq for IrFunction
Auto Trait Implementations§
impl Freeze for IrFunction
impl RefUnwindSafe for IrFunction
impl Send for IrFunction
impl Sync for IrFunction
impl Unpin for IrFunction
impl UnsafeUnpin for IrFunction
impl UnwindSafe for IrFunction
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