Union hirofa_quickjs_sys::JSCFunctionType
source · #[repr(C)]
pub union JSCFunctionType {
pub generic: JSCFunction,
pub generic_magic: Option<unsafe extern "C" fn(ctx: *mut JSContext, this_val: JSValue, argc: c_int, argv: *mut JSValue, magic: c_int) -> JSValue>,
pub constructor: JSCFunction,
pub constructor_magic: Option<unsafe extern "C" fn(ctx: *mut JSContext, new_target: JSValue, argc: c_int, argv: *mut JSValue, magic: c_int) -> JSValue>,
pub constructor_or_func: JSCFunction,
pub f_f: Option<unsafe extern "C" fn(arg1: f64) -> f64>,
pub f_f_f: Option<unsafe extern "C" fn(arg1: f64, arg2: f64) -> f64>,
pub getter: Option<unsafe extern "C" fn(ctx: *mut JSContext, this_val: JSValue) -> JSValue>,
pub setter: Option<unsafe extern "C" fn(ctx: *mut JSContext, this_val: JSValue, val: JSValue) -> JSValue>,
pub getter_magic: Option<unsafe extern "C" fn(ctx: *mut JSContext, this_val: JSValue, magic: c_int) -> JSValue>,
pub setter_magic: Option<unsafe extern "C" fn(ctx: *mut JSContext, this_val: JSValue, val: JSValue, magic: c_int) -> JSValue>,
pub iterator_next: Option<unsafe extern "C" fn(ctx: *mut JSContext, this_val: JSValue, argc: c_int, argv: *mut JSValue, pdone: *mut c_int, magic: c_int) -> JSValue>,
}
Fields§
§generic: JSCFunction
§generic_magic: Option<unsafe extern "C" fn(ctx: *mut JSContext, this_val: JSValue, argc: c_int, argv: *mut JSValue, magic: c_int) -> JSValue>
§constructor: JSCFunction
§constructor_magic: Option<unsafe extern "C" fn(ctx: *mut JSContext, new_target: JSValue, argc: c_int, argv: *mut JSValue, magic: c_int) -> JSValue>
§constructor_or_func: JSCFunction
§f_f: Option<unsafe extern "C" fn(arg1: f64) -> f64>
§f_f_f: Option<unsafe extern "C" fn(arg1: f64, arg2: f64) -> f64>
§getter: Option<unsafe extern "C" fn(ctx: *mut JSContext, this_val: JSValue) -> JSValue>
§setter: Option<unsafe extern "C" fn(ctx: *mut JSContext, this_val: JSValue, val: JSValue) -> JSValue>
§getter_magic: Option<unsafe extern "C" fn(ctx: *mut JSContext, this_val: JSValue, magic: c_int) -> JSValue>
§setter_magic: Option<unsafe extern "C" fn(ctx: *mut JSContext, this_val: JSValue, val: JSValue, magic: c_int) -> JSValue>
§iterator_next: Option<unsafe extern "C" fn(ctx: *mut JSContext, this_val: JSValue, argc: c_int, argv: *mut JSValue, pdone: *mut c_int, magic: c_int) -> JSValue>
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> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)