Enum mica_hl::RawFunctionKind
source · [−]pub enum RawFunctionKind {
Bytecode {
chunk: Rc<Chunk>,
captured_locals: Vec<CaptureKind, Global>,
},
Foreign(Box<dyn FnMut(&mut Memory, &[RawValue]) + 'static, Global>),
Control(Control),
}
Expand description
The kind of a raw function. The kind of the function (bytecode or FFI).
Variants
Bytecode
Foreign(Box<dyn FnMut(&mut Memory, &[RawValue]) + 'static, Global>)
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