pub enum Event {
WebEvent(Event),
MountEvent(MountEvent),
}
Expand description
Map the Event to DomEvent, which are browser events
Variants
WebEvent(Event)
native dome events web_sys::Events
MountEvent(MountEvent)
custom event here follows
Implementations
Trait Implementations
sourceimpl From<MountEvent> for Event
impl From<MountEvent> for Event
sourcepub fn from(mount_event: MountEvent) -> Event
pub fn from(mount_event: MountEvent) -> Event
Performs the conversion.
sourceimpl From<MouseEvent> for Event
impl From<MouseEvent> for Event
sourcepub fn from(mouse_event: MouseEvent) -> Event
pub fn from(mouse_event: MouseEvent) -> Event
Performs the conversion.
impl StructuralPartialEq for Event
Auto Trait Implementations
impl RefUnwindSafe for Event
impl !Send for Event
impl !Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more