#[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, _: Option<unsafe extern "C" fn(_: *mut JSRuntime, _: *mut JSGCObjectHeader)>)>,
    pub call: Option<unsafe extern "C" fn(_: *mut JSContext, _: JSValue, _: JSValue, _: i32, _: *mut JSValue, _: i32) -> JSValue>,
    pub exotic: *mut JSClassExoticMethods,
}Fields§
§class_name: *const i8§finalizer: Option<unsafe extern "C" fn(_: *mut JSRuntime, _: JSValue)>§gc_mark: Option<unsafe extern "C" fn(_: *mut JSRuntime, _: JSValue, _: Option<unsafe extern "C" fn(_: *mut JSRuntime, _: *mut JSGCObjectHeader)>)>§call: Option<unsafe extern "C" fn(_: *mut JSContext, _: JSValue, _: JSValue, _: i32, _: *mut JSValue, _: i32) -> JSValue>§exotic: *mut JSClassExoticMethodsTrait Implementations§
Source§impl Clone for JSClassDef
 
impl Clone for JSClassDef
Source§fn clone(&self) -> JSClassDef
 
fn clone(&self) -> JSClassDef
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 JSClassDef
 
impl Debug for JSClassDef
impl Copy for JSClassDef
Auto 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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more