Skip to main content

EventTargetSlot

Trait EventTargetSlot 

Source
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§

Source

const KIND_NAME: &'static str

Required Associated Types§

Required Methods§

Source

fn project(target: &EventTarget) -> Option<&Self::Value>

Source

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.

Implementors§