pub struct NativeFunc {
pub name: String,
pub func: Box<dyn Fn(&mut Vm, Vec<Value>) -> Result<Vec<Value>, ScriptError> + Send + Sync>,
}Fields§
§name: String§func: Box<dyn Fn(&mut Vm, Vec<Value>) -> Result<Vec<Value>, ScriptError> + Send + Sync>Trait Implementations§
Auto Trait Implementations§
impl Freeze for NativeFunc
impl !RefUnwindSafe for NativeFunc
impl Send for NativeFunc
impl Sync for NativeFunc
impl Unpin for NativeFunc
impl UnsafeUnpin for NativeFunc
impl !UnwindSafe for NativeFunc
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