pub struct AnyFn<F>(pub Rc<F>)
where
F: ?Sized + DynFn;
Tuple Fields§
§0: Rc<F>
Implementations§
Trait Implementations§
Source§impl<TEvent> IntoJsEventHandler<TEvent> for AnyFn<dyn Fn()>
Fn()
can be handlers for any event
impl<TEvent> IntoJsEventHandler<TEvent> for AnyFn<dyn Fn()>
Fn()
can be handlers for any event
fn into_js_event_handler(self) -> PassedToJsRuntime
Source§impl<TEvent: 'static + FromJs> IntoJsEventHandler<TEvent> for AnyFn<dyn Fn(TEvent)>
Fn(TEvent)
can be handlers for TEvent
impl<TEvent: 'static + FromJs> IntoJsEventHandler<TEvent> for AnyFn<dyn Fn(TEvent)>
Fn(TEvent)
can be handlers for TEvent
fn into_js_event_handler(self) -> PassedToJsRuntime
Source§impl<F: ?Sized + DynFn, TFunc: 'static + ?Sized + FnOfArgs<F::ArgsTuple, DynFn = F>> IntoPropValue<AnyFn<F>> for &Rc<TFunc>
impl<F: ?Sized + DynFn, TFunc: 'static + ?Sized + FnOfArgs<F::ArgsTuple, DynFn = F>> IntoPropValue<AnyFn<F>> for &Rc<TFunc>
fn into_prop_value(self) -> AnyFn<F>
Source§impl<F: ?Sized + DynFn, TFunc: 'static + ?Sized + FnOfArgs<F::ArgsTuple, DynFn = F>> IntoPropValue<AnyFn<F>> for Rc<TFunc>
impl<F: ?Sized + DynFn, TFunc: 'static + ?Sized + FnOfArgs<F::ArgsTuple, DynFn = F>> IntoPropValue<AnyFn<F>> for Rc<TFunc>
fn into_prop_value(self) -> AnyFn<F>
Source§impl<TFunc: 'static + Fn() -> TReturn, TReturn> IntoPropValue<AnyFn<dyn Fn() -> TReturn>> for TFunc
impl<TFunc: 'static + Fn() -> TReturn, TReturn> IntoPropValue<AnyFn<dyn Fn() -> TReturn>> for TFunc
fn into_prop_value(self) -> AnyFn<dyn Fn() -> TReturn>
Source§impl<TFunc: 'static + Fn(A) -> TReturn, TReturn, A> IntoPropValue<AnyFn<dyn Fn(A) -> TReturn>> for TFunc
impl<TFunc: 'static + Fn(A) -> TReturn, TReturn, A> IntoPropValue<AnyFn<dyn Fn(A) -> TReturn>> for TFunc
fn into_prop_value(self) -> AnyFn<dyn Fn(A) -> TReturn>
Source§impl<TFunc: 'static + Fn(A, B) -> TReturn, TReturn, A, B> IntoPropValue<AnyFn<dyn Fn(A, B) -> TReturn>> for TFunc
impl<TFunc: 'static + Fn(A, B) -> TReturn, TReturn, A, B> IntoPropValue<AnyFn<dyn Fn(A, B) -> TReturn>> for TFunc
fn into_prop_value(self) -> AnyFn<dyn Fn(A, B) -> TReturn>
Source§impl<TFunc: 'static + Fn(A, B, C) -> TReturn, TReturn, A, B, C> IntoPropValue<AnyFn<dyn Fn(A, B, C) -> TReturn>> for TFunc
impl<TFunc: 'static + Fn(A, B, C) -> TReturn, TReturn, A, B, C> IntoPropValue<AnyFn<dyn Fn(A, B, C) -> TReturn>> for TFunc
fn into_prop_value(self) -> AnyFn<dyn Fn(A, B, C) -> TReturn>
Source§impl<TFunc: 'static + Fn(A, B, C, D) -> TReturn, TReturn, A, B, C, D> IntoPropValue<AnyFn<dyn Fn(A, B, C, D) -> TReturn>> for TFunc
impl<TFunc: 'static + Fn(A, B, C, D) -> TReturn, TReturn, A, B, C, D> IntoPropValue<AnyFn<dyn Fn(A, B, C, D) -> TReturn>> for TFunc
fn into_prop_value(self) -> AnyFn<dyn Fn(A, B, C, D) -> TReturn>
Source§impl<TFunc: 'static + Fn(A, B, C, D, E) -> TReturn, TReturn, A, B, C, D, E> IntoPropValue<AnyFn<dyn Fn(A, B, C, D, E) -> TReturn>> for TFunc
impl<TFunc: 'static + Fn(A, B, C, D, E) -> TReturn, TReturn, A, B, C, D, E> IntoPropValue<AnyFn<dyn Fn(A, B, C, D, E) -> TReturn>> for TFunc
fn into_prop_value(self) -> AnyFn<dyn Fn(A, B, C, D, E) -> TReturn>
Source§impl<TFunc: 'static + Fn(A, B, C, D, E, F) -> TReturn, TReturn, A, B, C, D, E, F> IntoPropValue<AnyFn<dyn Fn(A, B, C, D, E, F) -> TReturn>> for TFunc
impl<TFunc: 'static + Fn(A, B, C, D, E, F) -> TReturn, TReturn, A, B, C, D, E, F> IntoPropValue<AnyFn<dyn Fn(A, B, C, D, E, F) -> TReturn>> for TFunc
fn into_prop_value(self) -> AnyFn<dyn Fn(A, B, C, D, E, F) -> TReturn>
Source§impl<TFunc: 'static + Fn(A, B, C, D, E, F, G) -> TReturn, TReturn, A, B, C, D, E, F, G> IntoPropValue<AnyFn<dyn Fn(A, B, C, D, E, F, G) -> TReturn>> for TFunc
impl<TFunc: 'static + Fn(A, B, C, D, E, F, G) -> TReturn, TReturn, A, B, C, D, E, F, G> IntoPropValue<AnyFn<dyn Fn(A, B, C, D, E, F, G) -> TReturn>> for TFunc
fn into_prop_value(self) -> AnyFn<dyn Fn(A, B, C, D, E, F, G) -> TReturn>
Source§impl<TFunc: 'static + Fn(A, B, C, D, E, F, G, H) -> TReturn, TReturn, A, B, C, D, E, F, G, H> IntoPropValue<AnyFn<dyn Fn(A, B, C, D, E, F, G, H) -> TReturn>> for TFunc
impl<TFunc: 'static + Fn(A, B, C, D, E, F, G, H) -> TReturn, TReturn, A, B, C, D, E, F, G, H> IntoPropValue<AnyFn<dyn Fn(A, B, C, D, E, F, G, H) -> TReturn>> for TFunc
fn into_prop_value(self) -> AnyFn<dyn Fn(A, B, C, D, E, F, G, H) -> TReturn>
Source§impl<F> SafeIntoJsRuntime for AnyFn<F>
impl<F> SafeIntoJsRuntime for AnyFn<F>
fn safe_into_js_runtime(self) -> PassedToJsRuntime
Auto Trait Implementations§
impl<F> Freeze for AnyFn<F>where
F: ?Sized,
impl<F> RefUnwindSafe for AnyFn<F>where
F: RefUnwindSafe + ?Sized,
impl<F> !Send for AnyFn<F>
impl<F> !Sync for AnyFn<F>
impl<F> Unpin for AnyFn<F>where
F: ?Sized,
impl<F> UnwindSafe for AnyFn<F>where
F: RefUnwindSafe + ?Sized,
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