Union rquickjs::qjs::JSCFunctionType
source · #[repr(C)]
pub union JSCFunctionType {
pub generic: Option<unsafe extern "C" fn(_: *mut JSContext, _: u64, _: i32, _: *mut u64) -> u64>,
pub generic_magic: Option<unsafe extern "C" fn(_: *mut JSContext, _: u64, _: i32, _: *mut u64, _: i32) -> u64>,
pub constructor: Option<unsafe extern "C" fn(_: *mut JSContext, _: u64, _: i32, _: *mut u64) -> u64>,
pub constructor_magic: Option<unsafe extern "C" fn(_: *mut JSContext, _: u64, _: i32, _: *mut u64, _: i32) -> u64>,
pub constructor_or_func: Option<unsafe extern "C" fn(_: *mut JSContext, _: u64, _: i32, _: *mut u64) -> u64>,
pub f_f: Option<unsafe extern "C" fn(_: f64) -> f64>,
pub f_f_f: Option<unsafe extern "C" fn(_: f64, _: f64) -> f64>,
pub getter: Option<unsafe extern "C" fn(_: *mut JSContext, _: u64) -> u64>,
pub setter: Option<unsafe extern "C" fn(_: *mut JSContext, _: u64, _: u64) -> u64>,
pub getter_magic: Option<unsafe extern "C" fn(_: *mut JSContext, _: u64, _: i32) -> u64>,
pub setter_magic: Option<unsafe extern "C" fn(_: *mut JSContext, _: u64, _: u64, _: i32) -> u64>,
pub iterator_next: Option<unsafe extern "C" fn(_: *mut JSContext, _: u64, _: i32, _: *mut u64, _: *mut i32, _: i32) -> u64>,
}
Fields§
§generic: Option<unsafe extern "C" fn(_: *mut JSContext, _: u64, _: i32, _: *mut u64) -> u64>
§generic_magic: Option<unsafe extern "C" fn(_: *mut JSContext, _: u64, _: i32, _: *mut u64, _: i32) -> u64>
§constructor: Option<unsafe extern "C" fn(_: *mut JSContext, _: u64, _: i32, _: *mut u64) -> u64>
§constructor_magic: Option<unsafe extern "C" fn(_: *mut JSContext, _: u64, _: i32, _: *mut u64, _: i32) -> u64>
§constructor_or_func: Option<unsafe extern "C" fn(_: *mut JSContext, _: u64, _: i32, _: *mut u64) -> u64>
§f_f: Option<unsafe extern "C" fn(_: f64) -> f64>
§f_f_f: Option<unsafe extern "C" fn(_: f64, _: f64) -> f64>
§getter: Option<unsafe extern "C" fn(_: *mut JSContext, _: u64) -> u64>
§setter: Option<unsafe extern "C" fn(_: *mut JSContext, _: u64, _: u64) -> u64>
§getter_magic: Option<unsafe extern "C" fn(_: *mut JSContext, _: u64, _: i32) -> u64>
§setter_magic: Option<unsafe extern "C" fn(_: *mut JSContext, _: u64, _: u64, _: i32) -> u64>
§iterator_next: Option<unsafe extern "C" fn(_: *mut JSContext, _: u64, _: i32, _: *mut u64, _: *mut i32, _: i32) -> u64>
Trait Implementations§
source§impl Clone for JSCFunctionType
impl Clone for JSCFunctionType
source§fn clone(&self) -> JSCFunctionType
fn clone(&self) -> JSCFunctionType
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 moreimpl Copy for JSCFunctionType
Auto Trait Implementations§
impl Freeze for JSCFunctionType
impl RefUnwindSafe for JSCFunctionType
impl Send for JSCFunctionType
impl Sync for JSCFunctionType
impl Unpin for JSCFunctionType
impl UnwindSafe for JSCFunctionType
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