Struct js::jsapi::JSPropertySpec [] [src]

#[repr(C)]
pub struct JSPropertySpec { pub name: *const c_char, pub flags: u8, pub getter: JSNativeWrapper, pub setter: JSNativeWrapper, }

Description of a property. JS_DefineProperties and JS_InitClass take arrays of these and define many properties at once. JS_PSG, JS_PSGS and JS_PS_END are helper macros for defining such arrays.

Fields

Trait Implementations

impl Debug for JSPropertySpec
[src]

[src]

Formats the value using the given formatter.

impl Copy for JSPropertySpec
[src]

impl Clone for JSPropertySpec
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more