#[repr(C)]pub struct JSClassDef {
pub class_name: *const i8,
pub finalizer: Option<unsafe extern "C" fn(*mut JSRuntime, JSValue)>,
pub gc_mark: Option<unsafe extern "C" fn(*mut JSRuntime, JSValue, *mut c_void)>,
pub call: Option<unsafe extern "C" fn(*mut JSContext, JSValue, JSValue, i32, *mut JSValue, i32) -> JSValue>,
pub exotic: *mut c_void,
}Fields§
§class_name: *const i8§finalizer: Option<unsafe extern "C" fn(*mut JSRuntime, JSValue)>§gc_mark: Option<unsafe extern "C" fn(*mut JSRuntime, JSValue, *mut c_void)>§call: Option<unsafe extern "C" fn(*mut JSContext, JSValue, JSValue, i32, *mut JSValue, i32) -> JSValue>§exotic: *mut c_voidAuto Trait Implementations§
impl Freeze for JSClassDef
impl RefUnwindSafe for JSClassDef
impl !Send for JSClassDef
impl !Sync for JSClassDef
impl Unpin for JSClassDef
impl UnwindSafe for JSClassDef
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