Trait lignin::callback_registry::CallbackSignature [−][src]
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 examplefn(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 CallbackSignature for fn(event: Event)
[src]impl<T> CallbackSignature for fn(dom_ref: DomRef<&T>)
[src]
impl<T> CallbackSignature for fn(dom_ref: DomRef<&T>)
[src]