#[non_exhaustive]pub enum FunctionKind {
Lua,
Native,
NativeClosure,
Builtin,
}Expand description
A function’s implementation kind, for introspection only.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Lua
A compiled Lua closure.
Native
A host native function.
NativeClosure
A collectable native closure.
Builtin
A function implemented by the VM.
Trait Implementations§
Source§impl Clone for FunctionKind
impl Clone for FunctionKind
impl Copy for FunctionKind
Source§impl Debug for FunctionKind
impl Debug for FunctionKind
impl Eq for FunctionKind
Source§impl PartialEq for FunctionKind
impl PartialEq for FunctionKind
impl StructuralPartialEq for FunctionKind
Auto Trait Implementations§
impl Freeze for FunctionKind
impl RefUnwindSafe for FunctionKind
impl Send for FunctionKind
impl Sync for FunctionKind
impl Unpin for FunctionKind
impl UnsafeUnpin for FunctionKind
impl UnwindSafe for FunctionKind
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