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

Trait Implementations

impl Debug for JSFunctionSpec
[src]

[src]
[]

Formats the value using the given formatter.

impl Copy for JSFunctionSpec
[src]

impl Clone for JSFunctionSpec
[src]

[src]
[]

Returns a copy of the value. Read more

1.0.0
[src]
[]

Performs copy-assignment from source. Read more