Skip to main content

EventKindTimed

Type Alias EventKindTimed 

Source
pub type EventKindTimed = MaybeTimed<EventKind, EventTimestamp>;
Available on crate feature event only.
Expand description

🎫 🕘 🤷 A convenience helper for optionally timed event kinds.


📍 ui/event

📦 size_of::<EventKindTimed>() == 40 bytes / 320 bits #️⃣ #[cfg(not(feature = “alloc”))] ⚗️Option<T>

📦 size_of::<EventKindTimed>() == 48 bytes / 384 bits #️⃣ #[cfg(feature = “alloc”)] ⚗️Option<T>


Aliased Type§

pub struct EventKindTimed {
    pub value: EventKind,
    pub time: Option<EventTimestamp>,
}

Fields§

§value: EventKind

The carried value.

§time: Option<EventTimestamp>

The associated time-like companion.

Trait Implementations§

Source§

impl From<WebEventMouse> for EventKindTimed

Available on crate feature web only.
Source§

fn from(from: WebEventMouse) -> Self

Converts to this type from the input type.
Source§

impl From<WebEventPointer> for EventKindTimed

Available on crate feature web only.
Source§

fn from(from: WebEventPointer) -> Self

Converts to this type from the input type.
Source§

impl From<WebEventWheel> for EventKindTimed

Available on crate feature web only.
Source§

fn from(from: WebEventWheel) -> Self

Converts to this type from the input type.