Struct mozjs::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
name: *const c_char
flags: u8
getter: JSNativeWrapper
setter: JSNativeWrapper
Trait Implementations
impl Debug for JSPropertySpec
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more