pub struct JSFunction { /* private fields */ }Expand description
Wrapper around facebook::jsi::Function providing a safe Rust API
Implementations§
Source§impl JSFunction
impl JSFunction
Sourcepub fn call(
&self,
runtime: &mut JSRuntime,
args: &[JSValue],
) -> Result<JSValue, String>
pub fn call( &self, runtime: &mut JSRuntime, args: &[JSValue], ) -> Result<JSValue, String>
Call the function with the given arguments
Auto Trait Implementations§
impl !Send for JSFunction
impl !Sync for JSFunction
impl Forget for JSFunction
impl Freeze for JSFunction
impl RefUnwindSafe for JSFunction
impl Unpin for JSFunction
impl UnsafeUnpin for JSFunction
impl UnwindSafe for JSFunction
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