Struct js::JSFunction
source · [−]pub struct JSFunction {
pub fn_handle: f64,
}
Fields
fn_handle: f64
Implementations
sourceimpl JSFunction
impl JSFunction
pub fn invoke_0(&self) -> f64
pub fn invoke_1<A>(&self, a: A) -> f64 where
A: Into<f64>,
pub fn invoke_2<A, B>(&self, a: A, b: B) -> f64 where
A: Into<f64>,
B: Into<f64>,
pub fn invoke_3<A, B, C>(&self, a: A, b: B, c: C) -> f64 where
A: Into<f64>,
B: Into<f64>,
C: Into<f64>,
pub fn invoke_4<A, B, C, D>(&self, a: A, b: B, c: C, d: D) -> f64 where
A: Into<f64>,
B: Into<f64>,
C: Into<f64>,
D: Into<f64>,
pub fn invoke_5<A, B, C, D, E>(&self, a: A, b: B, c: C, d: D, e: E) -> f64 where
A: Into<f64>,
B: Into<f64>,
C: Into<f64>,
D: Into<f64>,
E: Into<f64>,
pub fn invoke_6<A, B, C, D, E, F>(&self, a: A, b: B, c: C, d: D, e: E, f: F) -> f64 where
A: Into<f64>,
B: Into<f64>,
C: Into<f64>,
D: Into<f64>,
E: Into<f64>,
F: Into<f64>,
pub fn invoke_7<A, B, C, D, E, F, G>(
&self,
a: A,
b: B,
c: C,
d: D,
e: E,
f: F,
g: G
) -> f64 where
A: Into<f64>,
B: Into<f64>,
C: Into<f64>,
D: Into<f64>,
E: Into<f64>,
F: Into<f64>,
G: Into<f64>,
pub fn invoke_8<A, B, C, D, E, F, G, H>(
&self,
a: A,
b: B,
c: C,
d: D,
e: E,
f: F,
g: G,
h: H
) -> f64 where
A: Into<f64>,
B: Into<f64>,
C: Into<f64>,
D: Into<f64>,
E: Into<f64>,
F: Into<f64>,
G: Into<f64>,
H: Into<f64>,
pub fn invoke_9<A, B, C, D, E, F, G, H, I>(
&self,
a: A,
b: B,
c: C,
d: D,
e: E,
f: F,
g: G,
h: H,
i: I
) -> f64 where
A: Into<f64>,
B: Into<f64>,
C: Into<f64>,
D: Into<f64>,
E: Into<f64>,
F: Into<f64>,
G: Into<f64>,
H: Into<f64>,
I: Into<f64>,
pub fn invoke_10<A, B, C, D, E, F, G, H, I, J>(
&self,
a: A,
b: B,
c: C,
d: D,
e: E,
f: F,
g: G,
h: H,
i: I,
j: J
) -> f64 where
A: Into<f64>,
B: Into<f64>,
C: Into<f64>,
D: Into<f64>,
E: Into<f64>,
F: Into<f64>,
G: Into<f64>,
H: Into<f64>,
I: Into<f64>,
J: Into<f64>,
Trait Implementations
sourceimpl Clone for JSFunction
impl Clone for JSFunction
sourcefn clone(&self) -> JSFunction
fn clone(&self) -> JSFunction
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl From<&JSFunction> for f64
impl From<&JSFunction> for f64
sourcefn from(f: &JSFunction) -> Self
fn from(f: &JSFunction) -> Self
Converts to this type from the input type.
sourceimpl From<f64> for JSFunction
impl From<f64> for JSFunction
impl Copy for JSFunction
Auto Trait Implementations
impl RefUnwindSafe for JSFunction
impl Send for JSFunction
impl Sync for JSFunction
impl Unpin for JSFunction
impl UnwindSafe for JSFunction
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more