pub trait EventTargetSlot {
type Value;
const KIND_NAME: &'static str;
// Required methods
fn project(target: &EventTarget) -> Option<&Self::Value>;
fn project_mut(target: &mut EventTarget) -> Option<&mut Self::Value>;
}Required Associated Constants§
Required Associated Types§
Required Methods§
fn project(target: &EventTarget) -> Option<&Self::Value>
fn project_mut(target: &mut EventTarget) -> Option<&mut Self::Value>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.