[][src]Struct libquickjs_sys::JSClassExoticMethods

#[repr(C)]pub struct JSClassExoticMethods {
    pub get_own_property: Option<unsafe extern "C" fn(ctx: *mut JSContext, desc: *mut JSPropertyDescriptor, obj: JSValue, prop: JSAtom) -> c_int>,
    pub get_own_property_names: Option<unsafe extern "C" fn(ctx: *mut JSContext, ptab: *mut *mut JSPropertyEnum, plen: *mut u32, obj: JSValue) -> c_int>,
    pub delete_property: Option<unsafe extern "C" fn(ctx: *mut JSContext, obj: JSValue, prop: JSAtom) -> c_int>,
    pub define_own_property: Option<unsafe extern "C" fn(ctx: *mut JSContext, this_obj: JSValue, prop: JSAtom, val: JSValue, getter: JSValue, setter: JSValue, flags: c_int) -> c_int>,
    pub has_property: Option<unsafe extern "C" fn(ctx: *mut JSContext, obj: JSValue, atom: JSAtom) -> c_int>,
    pub get_property: Option<unsafe extern "C" fn(ctx: *mut JSContext, obj: JSValue, atom: JSAtom, receiver: JSValue) -> JSValue>,
    pub set_property: Option<unsafe extern "C" fn(ctx: *mut JSContext, obj: JSValue, atom: JSAtom, value: JSValue, receiver: JSValue, flags: c_int) -> c_int>,
}

Fields

get_own_property: Option<unsafe extern "C" fn(ctx: *mut JSContext, desc: *mut JSPropertyDescriptor, obj: JSValue, prop: JSAtom) -> c_int>get_own_property_names: Option<unsafe extern "C" fn(ctx: *mut JSContext, ptab: *mut *mut JSPropertyEnum, plen: *mut u32, obj: JSValue) -> c_int>delete_property: Option<unsafe extern "C" fn(ctx: *mut JSContext, obj: JSValue, prop: JSAtom) -> c_int>define_own_property: Option<unsafe extern "C" fn(ctx: *mut JSContext, this_obj: JSValue, prop: JSAtom, val: JSValue, getter: JSValue, setter: JSValue, flags: c_int) -> c_int>has_property: Option<unsafe extern "C" fn(ctx: *mut JSContext, obj: JSValue, atom: JSAtom) -> c_int>get_property: Option<unsafe extern "C" fn(ctx: *mut JSContext, obj: JSValue, atom: JSAtom, receiver: JSValue) -> JSValue>set_property: Option<unsafe extern "C" fn(ctx: *mut JSContext, obj: JSValue, atom: JSAtom, value: JSValue, receiver: JSValue, flags: c_int) -> c_int>

Trait Implementations

impl Clone for JSClassExoticMethods[src]

impl Copy for JSClassExoticMethods[src]

impl Debug for JSClassExoticMethods[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.