Struct rquickjs::qjs::JSClassDef
source · #[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 JSClassExoticMethods
Trait 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> 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