pub struct Function {
pub name: Option<Spur>,
pub chunk: Chunk,
pub upvalue_descs: Vec<UpvalueDesc>,
pub arity: u16,
pub has_rest: bool,
pub local_names: Vec<(u16, Spur)>,
}Expand description
A compiled function (template for closures).
Fields§
§name: Option<Spur>§chunk: Chunk§upvalue_descs: Vec<UpvalueDesc>§arity: u16§has_rest: bool§local_names: Vec<(u16, Spur)>Trait Implementations§
Auto Trait Implementations§
impl Freeze for Function
impl RefUnwindSafe for Function
impl Send for Function
impl Sync for Function
impl Unpin for Function
impl UnsafeUnpin 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