Struct HirFunction
pub struct HirFunction {
pub name: String,
pub params: Vec<HirParam>,
pub return_type: HirType,
pub body: Vec<StmtId>,
}Expand description
Runtime function lowered into HIR form.
Fields§
§name: StringUser-visible item name.
params: Vec<HirParam>Ordered parameter list.
return_type: HirTypeDeclared return type.
body: Vec<StmtId>Statement ids executed for the function body.
Trait Implementations§
§impl Clone for HirFunction
impl Clone for HirFunction
§fn clone(&self) -> HirFunction
fn clone(&self) -> HirFunction
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 moreAuto Trait Implementations§
impl Freeze for HirFunction
impl RefUnwindSafe for HirFunction
impl Send for HirFunction
impl Sync for HirFunction
impl Unpin for HirFunction
impl UnwindSafe for HirFunction
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