-
- // For the `register` function, we don't actually have to use trait objects in the argument.
-
- pub fn register<F: Fn(i32)+'static>(&mut self, callback: F) {
- unimplemented!()
- }
-
- pub fn call(&mut self, val: i32) {
- // We only need a shared iterator here. `Rc` also implicitly dereferences, so we can simply call the callback.
- for callback in self.callbacks.iter() {
- unimplemented!()
- }
- }