pub struct Func { /* private fields */ }Expand description
A bound function
Implementations§
Source§impl Func
impl Func
Sourcepub fn from_exported_function<T>(
store: &mut StoreInner<T>,
value: JsValue,
signature: FuncType,
) -> Option<Self>
pub fn from_exported_function<T>( store: &mut StoreInner<T>, value: JsValue, signature: FuncType, ) -> Option<Self>
Creates a new function from a JS value
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Func
impl RefUnwindSafe for Func
impl Send for Func
impl Sync for Func
impl Unpin for Func
impl UnwindSafe for Func
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