pub struct DomEvent { /* private fields */ }Expand description
A DOM event.
Implementations§
Source§impl DomEvent
impl DomEvent
Sourcepub fn target(&self) -> Option<DomElement>
pub fn target(&self) -> Option<DomElement>
Get the event’s target element.
Sourcepub fn prevent_default(&self)
pub fn prevent_default(&self)
Prevent the browser’s default handling of the event.
Sourcepub fn temporary_way_to_get_i64(&self) -> i64
pub fn temporary_way_to_get_i64(&self) -> i64
Will be deleted once we stop using it.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DomEvent
impl RefUnwindSafe for DomEvent
impl !Send for DomEvent
impl !Sync for DomEvent
impl Unpin for DomEvent
impl UnsafeUnpin for DomEvent
impl UnwindSafe for DomEvent
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