Type Alias TransitionEvent

Source
pub type TransitionEvent<TCurrent = Element> = SyntheticEvent<TCurrent, TransitionEvent, TransitionEvent>;

Aliased Type§

pub struct TransitionEvent<TCurrent = Element> { /* private fields */ }

Implementations

Source§

impl<TCurrent, TNativeEvent, TBaseSyntheticEvent: AsRef<BaseSyntheticEvent>> SyntheticEvent<TCurrent, TNativeEvent, TBaseSyntheticEvent>

Source

pub fn native_event(&self) -> TNativeEvent
where TNativeEvent: JsCast,

Source

pub fn current_target(&self) -> TCurrent
where TCurrent: JsCast,

Trait Implementations

Source§

impl<TCurrent, TNativeEvent, TBaseSyntheticEvent: Clone> Clone for SyntheticEvent<TCurrent, TNativeEvent, TBaseSyntheticEvent>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<TCurrent, TNativeEvent, TBaseSyntheticEvent: Debug> Debug for SyntheticEvent<TCurrent, TNativeEvent, TBaseSyntheticEvent>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<TCurrent, TNativeEvent, TBaseSyntheticEvent> Deref for SyntheticEvent<TCurrent, TNativeEvent, TBaseSyntheticEvent>

Source§

type Target = TBaseSyntheticEvent

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl<TCurrent, TNativeEvent, TBaseSyntheticEvent: JsCast> FromJs for SyntheticEvent<TCurrent, TNativeEvent, TBaseSyntheticEvent>

Source§

type Error = Infallible

Source§

fn from_js(js_value: JsValue) -> Result<Self, Self::Error>

Source§

impl<TCurrent, TNativeEvent, TBaseSyntheticEvent: PartialEq> PartialEq for SyntheticEvent<TCurrent, TNativeEvent, TBaseSyntheticEvent>

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<TCurrent, TNativeEvent, TBaseSyntheticEvent: Eq> Eq for SyntheticEvent<TCurrent, TNativeEvent, TBaseSyntheticEvent>