#[repr(C)]pub struct JSClassExoticMethods {
pub get_own_property: Option<unsafe extern "C" fn(*mut c_void, *mut JsValue, JsValue, c_int, *const JsValue) -> c_int>,
pub define_own_property: Option<unsafe extern "C" fn(*mut c_void, JsValue, c_int, *const JsValue, JsValue, *mut c_int) -> c_int>,
pub has_property: Option<unsafe extern "C" fn(*mut c_void, JsValue, c_int, *const JsValue) -> c_int>,
pub delete_property: Option<unsafe extern "C" fn(*mut c_void, JsValue, c_int, *const JsValue) -> c_int>,
pub get_prototype: Option<unsafe extern "C" fn(*mut c_void, JsValue) -> JsValue>,
pub set_prototype: Option<unsafe extern "C" fn(*mut c_void, JsValue, JsValue) -> c_int>,
pub is_extensible: Option<unsafe extern "C" fn(*mut c_void, JsValue) -> c_int>,
pub prevent_extensions: Option<unsafe extern "C" fn(*mut c_void, JsValue) -> c_int>,
}Expand description
JSClassExoticMethods: the traps a class may override.
Read field by field with null checks — a module that only wants get_own_property leaves
the rest zero, which is what point.c’s empty JSClassDef relies on.
Fields§
§get_own_property: Option<unsafe extern "C" fn(*mut c_void, *mut JsValue, JsValue, c_int, *const JsValue) -> c_int>[[GetOwnProperty]].
define_own_property: Option<unsafe extern "C" fn(*mut c_void, JsValue, c_int, *const JsValue, JsValue, *mut c_int) -> c_int>[[DefineOwnProperty]].
has_property: Option<unsafe extern "C" fn(*mut c_void, JsValue, c_int, *const JsValue) -> c_int>[[HasProperty]].
delete_property: Option<unsafe extern "C" fn(*mut c_void, JsValue, c_int, *const JsValue) -> c_int>[[Delete]].
get_prototype: Option<unsafe extern "C" fn(*mut c_void, JsValue) -> JsValue>[[GetPrototypeOf]].
set_prototype: Option<unsafe extern "C" fn(*mut c_void, JsValue, JsValue) -> c_int>[[SetPrototypeOf]].
is_extensible: Option<unsafe extern "C" fn(*mut c_void, JsValue) -> c_int>[[IsExtensible]].
prevent_extensions: Option<unsafe extern "C" fn(*mut c_void, JsValue) -> c_int>[[PreventExtensions]].
Auto Trait Implementations§
impl Forget for JSClassExoticMethods
impl Freeze for JSClassExoticMethods
impl Move for JSClassExoticMethods
impl RefUnwindSafe for JSClassExoticMethods
impl Send for JSClassExoticMethods
impl Sync for JSClassExoticMethods
impl Unpin for JSClassExoticMethods
impl UnsafeUnpin 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