pub fn subscribe<F>(&mut self, handler: F)
    where
        F: Fn(&T) + 'static,
    {
        self.handlers.push(Box::new(handler));
    }
/// Registers an event handler. There may be more that one handler at a
/// time.
Registers an event handler. There may be more that one handler at a
time.
Registers an event handler . There may be more that one handler at a time .
pub fn subscribe<F>(&mut self, handler: F)
    where
        F: Fn(&T) + 'static,
    {
        self.handlers.push(Box::new(handler));
    }
pub fn subscribe < F > ( & mut self , handler : F ) where F : Fn ( & T ) + ' static , { self . handlers . push ( Box :: new ( handler ) ) ; }
Registers an event handler.
Registers an event handler .
&mut self
handler
F
&mut self
handler
F