[][src]Union quickjs_sys::JSCFunctionType

#[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>,
    // some fields omitted
}

Fields

generic: JSCFunctiongeneric_magic: Option<unsafe extern "C" fn(ctx: *mut JSContext, this_val: JSValue, argc: c_int, argv: *mut JSValue, magic: c_int) -> JSValue>constructor: JSCFunctionconstructor_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: JSCFunctionf_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

impl Clone for JSCFunctionType[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Copy for JSCFunctionType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]