Struct quickjspp::JsFunction
source · pub struct JsFunction { /* private fields */ }
Expand description
Wraps an object from the QuickJs runtime. Provides convenience property accessors.
Implementations§
source§impl JsFunction
impl JsFunction
pub fn try_from_value(value: OwnedJsValue) -> Result<Self, ValueError>
pub fn into_value(self) -> OwnedJsValue
pub fn call( &self, args: Vec<OwnedJsValue> ) -> Result<OwnedJsValue, ExecutionError>
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 moresource§impl Debug for JsFunction
impl Debug for JsFunction
source§impl From<JsFunction> for JsValue
impl From<JsFunction> for JsValue
source§fn from(value: JsFunction) -> Self
fn from(value: JsFunction) -> Self
Converts to this type from the input type.
source§impl PartialEq for JsFunction
impl PartialEq for JsFunction
source§fn eq(&self, other: &JsFunction) -> bool
fn eq(&self, other: &JsFunction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<JsValue> for JsFunction
impl TryFrom<JsValue> for JsFunction
impl StructuralPartialEq 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§
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