#[repr(C)]pub union JSCFunctionType {
pub generic: Option<unsafe extern "C" fn(*mut JSContext, JSValue, i32, *mut JSValue) -> JSValue>,
pub generic_magic: Option<unsafe extern "C" fn(*mut JSContext, JSValue, i32, *mut JSValue, i32) -> JSValue>,
pub constructor: Option<unsafe extern "C" fn(*mut JSContext, JSValue, i32, *mut JSValue) -> JSValue>,
pub constructor_magic: Option<unsafe extern "C" fn(*mut JSContext, JSValue, i32, *mut JSValue, i32) -> JSValue>,
pub constructor_or_func: Option<unsafe extern "C" fn(*mut JSContext, JSValue, i32, *mut JSValue) -> JSValue>,
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, JSValue) -> JSValue>,
pub setter: Option<unsafe extern "C" fn(*mut JSContext, JSValue, JSValue) -> JSValue>,
pub getter_magic: Option<unsafe extern "C" fn(*mut JSContext, JSValue, i32) -> JSValue>,
pub setter_magic: Option<unsafe extern "C" fn(*mut JSContext, JSValue, JSValue, i32) -> JSValue>,
pub iterator_next: Option<unsafe extern "C" fn(*mut JSContext, JSValue, i32, *mut JSValue, *mut i32, i32) -> JSValue>,
}Fields§
§generic: Option<unsafe extern "C" fn(*mut JSContext, JSValue, i32, *mut JSValue) -> JSValue>§generic_magic: Option<unsafe extern "C" fn(*mut JSContext, JSValue, i32, *mut JSValue, i32) -> JSValue>§constructor: Option<unsafe extern "C" fn(*mut JSContext, JSValue, i32, *mut JSValue) -> JSValue>§constructor_magic: Option<unsafe extern "C" fn(*mut JSContext, JSValue, i32, *mut JSValue, i32) -> JSValue>§constructor_or_func: Option<unsafe extern "C" fn(*mut JSContext, JSValue, i32, *mut JSValue) -> JSValue>§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, JSValue) -> JSValue>§setter: Option<unsafe extern "C" fn(*mut JSContext, JSValue, JSValue) -> JSValue>§getter_magic: Option<unsafe extern "C" fn(*mut JSContext, JSValue, i32) -> JSValue>§setter_magic: Option<unsafe extern "C" fn(*mut JSContext, JSValue, JSValue, i32) -> JSValue>§iterator_next: Option<unsafe extern "C" fn(*mut JSContext, JSValue, i32, *mut JSValue, *mut i32, i32) -> JSValue>Trait Implementations§
Source§impl Clone for JSCFunctionType
impl Clone for JSCFunctionType
Source§fn clone(&self) -> JSCFunctionType
fn clone(&self) -> JSCFunctionType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UnsafeUnpin 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: 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