pub struct NativeFunction {
pub name: String,
pub func: fn(args: Vec<Value>) -> Value,
pub params: Vec<NativeFunctionParam>,
}Fields§
§name: String§func: fn(args: Vec<Value>) -> Value§params: Vec<NativeFunctionParam>Implementations§
Trait Implementations§
Source§impl Clone for NativeFunction
impl Clone for NativeFunction
Source§fn clone(&self) -> NativeFunction
fn clone(&self) -> NativeFunction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NativeFunction
impl Debug for NativeFunction
Auto Trait Implementations§
impl Freeze for NativeFunction
impl RefUnwindSafe for NativeFunction
impl Send for NativeFunction
impl Sync for NativeFunction
impl Unpin for NativeFunction
impl UnwindSafe for NativeFunction
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