Struct typed_html::events::EFn
source · pub struct EFn<F, E>(_, _);
Expand description
Wrapper type for closures as event handlers.
Implementations
Trait Implementations
sourceimpl<F, E> EventHandler<DOM, E> for EFn<F, E>where
F: FnMut(E) + 'static,
E: ConcreteEvent,
impl<F, E> EventHandler<DOM, E> for EFn<F, E>where
F: FnMut(E) + 'static,
E: ConcreteEvent,
sourceimpl<F, E> IntoEventHandler<DOM, E> for EFn<F, E>where
F: FnMut(E) + 'static,
E: ConcreteEvent + 'static,
impl<F, E> IntoEventHandler<DOM, E> for EFn<F, E>where
F: FnMut(E) + 'static,
E: ConcreteEvent + 'static,
sourcefn into_event_handler(self) -> Box<dyn EventHandler<DOM, E>>
fn into_event_handler(self) -> Box<dyn EventHandler<DOM, E>>
Construct an event handler from an instance of the source type.
Auto Trait Implementations
impl<F, E> RefUnwindSafe for EFn<F, E>where
E: RefUnwindSafe,
F: RefUnwindSafe,
impl<F, E> Send for EFn<F, E>where
E: Send,
F: Send,
impl<F, E> Sync for EFn<F, E>where
E: Sync,
F: Sync,
impl<F, E> Unpin for EFn<F, E>where
E: Unpin,
F: Unpin,
impl<F, E> UnwindSafe for EFn<F, E>where
E: UnwindSafe,
F: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more