[][src]Macro azul_core::impl_callback

macro_rules! impl_callback {
    ($callback_value:ident) => { ... };
}

Implements Display, Debug, Copy, Clone, PartialEq, Eq, Hash, PartialOrd, Ord, Hash for a Callback with a .0 field:

struct MyCallback(fn (&T));

// impl Display, Debug, etc. for MyCallback
impl_callback!(MyCallback);

This is necessary to work around for https://github.com/rust-lang/rust/issues/54508