pub fn add(&mut self, callback: Box<dyn Fn(ParamType)>) -> CallbackHandler {
		let resp = Rc::new(());
		self.callbacks.push((callback, resp.clone()));
		resp
	}
/// The `add` method accepts a closure with with a parameter and returns an handler.
/// Once the handler is dropped the closure will not be executed anymore.
/// The mutability on self is expected cause a closure is being added.
The `add` method accepts a closure with with a parameter and returns an handler.
Once the handler is dropped the closure will not be executed anymore.
The mutability on self is expected cause a closure is being added.
The ` add ` method accepts a closure with with a parameter and returns an handler . Once the handler is dropped the closure will not be executed anymore . The mutability on self is expected cause a closure is being added .
pub fn add(&mut self, callback: Box<dyn Fn(ParamType)>) -> CallbackHandler {
		let resp = Rc::new(());
		self.callbacks.push((callback, resp.clone()));
		resp
	}
pub fn add ( & mut self , callback : Box < dyn Fn ( ParamType ) > ) -> CallbackHandler { let resp = Rc :: new ( ( ) ) ; self . callbacks . push ( ( callback , resp . clone ( ) ) ) ; resp }
The `add` method accepts a closure with with a parameter and returns an handler.
The ` add ` method accepts a closure with with a parameter and returns an handler .
&mut self
callback
Box<dyn Fn(ParamType)>
&mut self
callback
Box<dyn Fn(ParamType)>