pub enum FunctionKind {
Bytecode {
chunk: Rc<Chunk>,
captured_locals: Vec<CaptureKind>,
},
Foreign(ForeignFunction),
Control(Control),
}
Expand description
The kind of the function (bytecode or FFI).
Variants
Bytecode
Foreign(ForeignFunction)
Control(Control)
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for FunctionKind
impl !Send for FunctionKind
impl !Sync for FunctionKind
impl Unpin for FunctionKind
impl !UnwindSafe for FunctionKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more