Struct rquickjs_sys::JSClassExoticMethods
source · [−]#[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
sourceimpl Clone for JSClassExoticMethods
impl Clone for JSClassExoticMethods
sourcefn clone(&self) -> JSClassExoticMethods
fn clone(&self) -> JSClassExoticMethods
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for JSClassExoticMethods
impl Debug for JSClassExoticMethods
impl Copy for JSClassExoticMethods
Auto Trait Implementations
impl RefUnwindSafe for JSClassExoticMethods
impl Send for JSClassExoticMethods
impl Sync for JSClassExoticMethods
impl Unpin for JSClassExoticMethods
impl UnwindSafe for JSClassExoticMethods
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more