pub struct FnDef {
pub name: String,
pub params: usize,
pub return_type: Type,
pub body: Block,
pub locals: Vec<Type>,
}Expand description
Parameters occupy the first locals, in order.
Fields§
§name: String§params: usize§return_type: Type§body: Block§locals: Vec<Type>The type of every local, by id.
Trait Implementations§
Auto Trait Implementations§
impl !Send for FnDef
impl !Sync for FnDef
impl Freeze for FnDef
impl RefUnwindSafe for FnDef
impl Unpin for FnDef
impl UnsafeUnpin for FnDef
impl UnwindSafe for FnDef
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