Struct js::jsapi::JSFunctionSpec
[−]
[src]
pub struct JSFunctionSpec { pub name: *const c_char, pub call: JSNativeWrapper, pub nargs: u16, pub flags: u16, pub selfHostedName: *const c_char, }
To define a native function, set call to a JSNativeWrapper. To define a self-hosted function, set selfHostedName to the name of a function compiled during JSRuntime::initSelfHosting.
Fields
name: *const c_char
call: JSNativeWrapper
nargs: u16
flags: u16
selfHostedName: *const c_char
Trait Implementations
impl Debug for JSFunctionSpec
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src][−]
Formats the value using the given formatter.