pub trait TypeExt {
// Required method
fn with_state_key(
self,
state_key: impl Into<StateKey>,
) -> (StateEventType, StateKey);
}Expand description
Convenience trait for adding event type plus state key to state maps.
Required Methods§
Sourcefn with_state_key(
self,
state_key: impl Into<StateKey>,
) -> (StateEventType, StateKey)
fn with_state_key( self, state_key: impl Into<StateKey>, ) -> (StateEventType, StateKey)
Pairs this event type with an owned state key.
Timeline event types are converted to their state-event type spelling. Borrowed event types are cloned as needed for the returned pair.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".