pub struct FuncDef {
pub name: String,
pub params: Vec<ParamSlot>,
pub chunk: Chunk,
pub is_arrow: bool,
}Expand description
A compiled function template: parameter shape + body chunk. Shared by every closure created from the same function/arrow.
Fields§
§name: String§params: Vec<ParamSlot>Parameter binding templates (destructuring lowered by the compiler into the body prologue; here we only track the simple arg slots).
chunk: Chunk§is_arrow: boolTrait Implementations§
Auto Trait Implementations§
impl Freeze for FuncDef
impl RefUnwindSafe for FuncDef
impl Send for FuncDef
impl Sync for FuncDef
impl Unpin for FuncDef
impl UnsafeUnpin for FuncDef
impl UnwindSafe for FuncDef
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