#[non_exhaustive]pub struct TransitionDetail {
pub property_name: String,
pub elapsed: f64,
pub pseudo_element: Option<String>,
}Expand description
transitionstart / transitionend / transitioncancel event
payload. CSS Transitions Level 1 §5.1.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.property_name: StringAnimatable property whose value crossed a transition
boundary, in CSS-canonical kebab-case ("color",
"background-color", …).
elapsed: f64Time elapsed since the transition started, in seconds.
For transitionstart, always 0.0.
pseudo_element: Option<String>Pseudo-element associated with the transition, or
None if the transition is on the element itself.
Implementations§
Trait Implementations§
Source§impl Clone for TransitionDetail
impl Clone for TransitionDetail
Source§impl Debug for TransitionDetail
impl Debug for TransitionDetail
Source§impl PartialEq for TransitionDetail
impl PartialEq for TransitionDetail
impl StructuralPartialEq for TransitionDetail
Auto Trait Implementations§
impl Freeze for TransitionDetail
impl RefUnwindSafe for TransitionDetail
impl Send for TransitionDetail
impl Sync for TransitionDetail
impl Unpin for TransitionDetail
impl UnsafeUnpin for TransitionDetail
impl UnwindSafe for TransitionDetail
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