Trait lignin::callback_registry::CallbackSignature[][src]

pub trait CallbackSignature: Sealed + Sized + Copy { }

Marks function pointers for which callbacks are implemented.

This not being a blanket implementation over fn(T) is largely related to Rust#56105.

In short, an impl <T> CallbackSignature for fn(T) {} currently does not cover for example fn(web::DomRef<&'_ T>), but their collision will become a hard error in the future (as of March 2021/Rust 1.50.0).

Implementations on Foreign Types

impl CallbackSignature for fn(event: Event)[src]

impl<T> CallbackSignature for fn(dom_ref: DomRef<&T>)[src]

Loading content...

Implementors

Loading content...