pub struct FunctionObject {
pub arity: usize,
pub name: StringHandle,
pub chunk: Chunk,
pub upvalue_count: usize,
}Fields§
§arity: usize§name: StringHandle§chunk: Chunk§upvalue_count: usizeImplementations§
Source§impl FunctionObject
impl FunctionObject
pub fn new(name: StringHandle, arity: usize) -> Self
Trait Implementations§
Source§impl Clone for FunctionObject
impl Clone for FunctionObject
Source§impl Debug for FunctionObject
impl Debug for FunctionObject
Source§impl Default for FunctionObject
impl Default for FunctionObject
Source§impl PartialEq for FunctionObject
impl PartialEq for FunctionObject
impl StructuralPartialEq for FunctionObject
Auto Trait Implementations§
impl Freeze for FunctionObject
impl RefUnwindSafe for FunctionObject
impl Send for FunctionObject
impl Sync for FunctionObject
impl Unpin for FunctionObject
impl UnsafeUnpin for FunctionObject
impl UnwindSafe for FunctionObject
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