Struct web_sys::TransitionEvent
source · #[repr(transparent)]pub struct TransitionEvent { /* private fields */ }
Expand description
The TransitionEvent
object
This API requires the following crate features to be activated: TransitionEvent
Implementations§
source§impl TransitionEvent
impl TransitionEvent
source§impl TransitionEvent
impl TransitionEvent
sourcepub fn new_with_event_init_dict(
type_: &str,
event_init_dict: &TransitionEventInit
) -> Result<TransitionEvent, JsValue>
pub fn new_with_event_init_dict(
type_: &str,
event_init_dict: &TransitionEventInit
) -> Result<TransitionEvent, JsValue>
The new TransitionEvent(..)
constructor, creating a new instance of TransitionEvent
This API requires the following crate features to be activated: TransitionEvent
, TransitionEventInit
source§impl TransitionEvent
impl TransitionEvent
sourcepub fn property_name(&self) -> String
pub fn property_name(&self) -> String
The propertyName
getter
This API requires the following crate features to be activated: TransitionEvent
source§impl TransitionEvent
impl TransitionEvent
sourcepub fn elapsed_time(&self) -> f32
pub fn elapsed_time(&self) -> f32
The elapsedTime
getter
This API requires the following crate features to be activated: TransitionEvent
source§impl TransitionEvent
impl TransitionEvent
sourcepub fn pseudo_element(&self) -> String
pub fn pseudo_element(&self) -> String
The pseudoElement
getter
This API requires the following crate features to be activated: TransitionEvent
Trait Implementations§
source§impl AsRef<Event> for TransitionEvent
impl AsRef<Event> for TransitionEvent
source§impl AsRef<JsValue> for TransitionEvent
impl AsRef<JsValue> for TransitionEvent
source§impl AsRef<Object> for TransitionEvent
impl AsRef<Object> for TransitionEvent
source§impl Clone for TransitionEvent
impl Clone for TransitionEvent
source§fn clone(&self) -> TransitionEvent
fn clone(&self) -> TransitionEvent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TransitionEvent
impl Debug for TransitionEvent
source§impl From<JsValue> for TransitionEvent
impl From<JsValue> for TransitionEvent
source§fn from(obj: JsValue) -> TransitionEvent
fn from(obj: JsValue) -> TransitionEvent
Converts to this type from the input type.
source§impl From<TransitionEvent> for Event
impl From<TransitionEvent> for Event
source§fn from(obj: TransitionEvent) -> Event
fn from(obj: TransitionEvent) -> Event
Converts to this type from the input type.
source§impl From<TransitionEvent> for JsValue
impl From<TransitionEvent> for JsValue
source§fn from(obj: TransitionEvent) -> JsValue
fn from(obj: TransitionEvent) -> JsValue
Converts to this type from the input type.
source§impl From<TransitionEvent> for Object
impl From<TransitionEvent> for Object
source§fn from(obj: TransitionEvent) -> Object
fn from(obj: TransitionEvent) -> Object
Converts to this type from the input type.
source§impl FromWasmAbi for TransitionEvent
impl FromWasmAbi for TransitionEvent
source§impl<'a> IntoWasmAbi for &'a TransitionEvent
impl<'a> IntoWasmAbi for &'a TransitionEvent
source§impl IntoWasmAbi for TransitionEvent
impl IntoWasmAbi for TransitionEvent
source§impl JsCast for TransitionEvent
impl JsCast for TransitionEvent
source§fn instanceof(val: &JsValue) -> bool
fn instanceof(val: &JsValue) -> bool
Performs a dynamic
instanceof
check to see whether the JsValue
provided is an instance of this type. Read moresource§fn unchecked_from_js(val: JsValue) -> Self
fn unchecked_from_js(val: JsValue) -> Self
source§fn unchecked_from_js_ref(val: &JsValue) -> &Self
fn unchecked_from_js_ref(val: &JsValue) -> &Self
source§fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
Test whether this JS value is an instance of the type
T
. Read moresource§fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
Performs a dynamic cast (checked at runtime) of this value into the
target type
T
. Read moresource§fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
Performs a dynamic cast (checked at runtime) of this value into the
target type
T
. Read moresource§fn unchecked_into<T>(self) -> Twhere
T: JsCast,
fn unchecked_into<T>(self) -> Twhere
T: JsCast,
Performs a zero-cost unchecked cast into the specified type. Read more
source§impl OptionFromWasmAbi for TransitionEvent
impl OptionFromWasmAbi for TransitionEvent
source§impl<'a> OptionIntoWasmAbi for &'a TransitionEvent
impl<'a> OptionIntoWasmAbi for &'a TransitionEvent
source§impl OptionIntoWasmAbi for TransitionEvent
impl OptionIntoWasmAbi for TransitionEvent
source§impl RefFromWasmAbi for TransitionEvent
impl RefFromWasmAbi for TransitionEvent
§type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
The wasm ABI type references to
Self
are recovered from.§type Anchor = ManuallyDrop<TransitionEvent>
type Anchor = ManuallyDrop<TransitionEvent>
The type that holds the reference to
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous. Read moreAuto Trait Implementations§
impl RefUnwindSafe for TransitionEvent
impl Send for TransitionEvent
impl Sync for TransitionEvent
impl Unpin for TransitionEvent
impl UnwindSafe for TransitionEvent
Blanket Implementations§
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
source§fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
. Read more