Struct rquickjs_core::prelude::Func
source · pub struct Func<T, P>(/* private fields */);
Expand description
Helper type to implement IntoJsFunc
for closure by constraining arguments.
Implementations§
Trait Implementations§
source§impl<'js, T, P> From<T> for Func<T, P>where
T: IntoJsFunc<'js, P>,
impl<'js, T, P> From<T> for Func<T, P>where
T: IntoJsFunc<'js, P>,
Auto Trait Implementations§
impl<T, P> RefUnwindSafe for Func<T, P>where
P: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, P> Send for Func<T, P>
impl<T, P> Sync for Func<T, P>
impl<T, P> Unpin for Func<T, P>
impl<T, P> UnwindSafe for Func<T, P>where
P: UnwindSafe,
T: UnwindSafe,
Blanket Implementations§
source§impl<'js, T> AsProperty<'js, T> for Twhere
T: IntoJs<'js>,
impl<'js, T> AsProperty<'js, T> for Twhere
T: IntoJs<'js>,
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