Struct js::JSFunction
source · pub struct JSFunction {
pub fn_handle: f64,
}
Fields§
§fn_handle: f64
Implementations§
source§impl JSFunction
impl JSFunction
pub fn invoke(&self, params: &[InvokeParam<'_>]) -> f64
pub fn invoke_and_return_object(&self, params: &[InvokeParam<'_>]) -> ExternRef
pub fn invoke_and_return_bigint(&self, params: &[InvokeParam<'_>]) -> i64
pub fn invoke_and_return_string(&self, params: &[InvokeParam<'_>]) -> String
pub fn invoke_and_return_array_buffer(
&self,
params: &[InvokeParam<'_>]
) -> Vec<u8>
pub fn invoke_and_return_bool(&self, params: &[InvokeParam<'_>]) -> bool
Trait Implementations§
source§impl Clone for JSFunction
impl Clone for JSFunction
source§fn clone(&self) -> JSFunction
fn clone(&self) -> JSFunction
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 more