#[repr(C)]pub struct ObjectOps {
pub lookupProperty: Option<unsafe extern "C" fn(*mut JSContext, Handle<*mut JSObject>, Handle<PropertyKey>, MutableHandle<*mut JSObject>, *mut PropertyResult) -> bool>,
pub defineProperty: Option<unsafe extern "C" fn(*mut JSContext, Handle<*mut JSObject>, Handle<PropertyKey>, Handle<PropertyDescriptor>, *mut ObjectOpResult) -> bool>,
pub hasProperty: Option<unsafe extern "C" fn(*mut JSContext, Handle<*mut JSObject>, Handle<PropertyKey>, *mut bool) -> bool>,
pub getProperty: Option<unsafe extern "C" fn(*mut JSContext, Handle<*mut JSObject>, Handle<Value>, Handle<PropertyKey>, MutableHandle<Value>) -> bool>,
pub setProperty: Option<unsafe extern "C" fn(*mut JSContext, Handle<*mut JSObject>, Handle<PropertyKey>, Handle<Value>, Handle<Value>, *mut ObjectOpResult) -> bool>,
pub getOwnPropertyDescriptor: Option<unsafe extern "C" fn(*mut JSContext, Handle<*mut JSObject>, Handle<PropertyKey>, u64) -> bool>,
pub deleteProperty: Option<unsafe extern "C" fn(*mut JSContext, Handle<*mut JSObject>, Handle<PropertyKey>, *mut ObjectOpResult) -> bool>,
pub getElements: Option<unsafe extern "C" fn(*mut JSContext, Handle<*mut JSObject>, u32, u32, *mut ElementAdder) -> bool>,
pub funToString: Option<unsafe extern "C" fn(*mut JSContext, Handle<*mut JSObject>, bool) -> *mut JSString>,
}
Fields§
§lookupProperty: Option<unsafe extern "C" fn(*mut JSContext, Handle<*mut JSObject>, Handle<PropertyKey>, MutableHandle<*mut JSObject>, *mut PropertyResult) -> bool>
§defineProperty: Option<unsafe extern "C" fn(*mut JSContext, Handle<*mut JSObject>, Handle<PropertyKey>, Handle<PropertyDescriptor>, *mut ObjectOpResult) -> bool>
§hasProperty: Option<unsafe extern "C" fn(*mut JSContext, Handle<*mut JSObject>, Handle<PropertyKey>, *mut bool) -> bool>
§getProperty: Option<unsafe extern "C" fn(*mut JSContext, Handle<*mut JSObject>, Handle<Value>, Handle<PropertyKey>, MutableHandle<Value>) -> bool>
§setProperty: Option<unsafe extern "C" fn(*mut JSContext, Handle<*mut JSObject>, Handle<PropertyKey>, Handle<Value>, Handle<Value>, *mut ObjectOpResult) -> bool>
§getOwnPropertyDescriptor: Option<unsafe extern "C" fn(*mut JSContext, Handle<*mut JSObject>, Handle<PropertyKey>, u64) -> bool>
§deleteProperty: Option<unsafe extern "C" fn(*mut JSContext, Handle<*mut JSObject>, Handle<PropertyKey>, *mut ObjectOpResult) -> bool>
§getElements: Option<unsafe extern "C" fn(*mut JSContext, Handle<*mut JSObject>, u32, u32, *mut ElementAdder) -> bool>
§funToString: Option<unsafe extern "C" fn(*mut JSContext, Handle<*mut JSObject>, bool) -> *mut JSString>
Trait Implementations§
impl Copy for ObjectOps
impl StructuralPartialEq for ObjectOps
Auto Trait Implementations§
impl Freeze for ObjectOps
impl RefUnwindSafe for ObjectOps
impl Send for ObjectOps
impl Sync for ObjectOps
impl Unpin for ObjectOps
impl UnwindSafe for ObjectOps
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: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Filterable for T
impl<T> Filterable for T
Source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
Creates a filterable data provider with the given name for debugging. Read more