pub trait OnTargetAttribute<E, F, T> {
type Output;
// Required method
fn on_target(self, event: E, cb: F) -> Self::Output;
}Expand description
Adds an event listener with a typed target to an element definition.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".