Struct hirofa_quickjs_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§
source§impl Clone for JSClassExoticMethods
impl Clone for JSClassExoticMethods
source§fn clone(&self) -> JSClassExoticMethods
fn clone(&self) -> JSClassExoticMethods
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for JSClassExoticMethods
impl Debug for JSClassExoticMethods
impl Copy for JSClassExoticMethods
Auto Trait Implementations§
impl Freeze for JSClassExoticMethods
impl RefUnwindSafe for JSClassExoticMethods
impl Send for JSClassExoticMethods
impl Sync for JSClassExoticMethods
impl Unpin for JSClassExoticMethods
impl UnwindSafe for JSClassExoticMethods
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)