Skip to main content

Callback

Trait Callback 

Source
pub trait Callback: FnMut(&mut Context) + 'static {
    // Required method
    fn clone_box(&self) -> Box<dyn Callback>;
}

Required Methods§

Source

fn clone_box(&self) -> Box<dyn Callback>

Trait Implementations§

Source§

impl Clone for Box<dyn Callback>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for dyn Callback

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for dyn Callback

Source§

fn eq(&self, _: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Implementors§

Source§

impl<F> Callback for F
where F: FnMut(&mut Context) + Clone + 'static,