Registers the given clearable. In the common case, functions and commands hold a reference to the out-of-machine state they interact with. This state is invisible from here, but we may need to have access to it to reset it as part of the `clear` operation. In those cases, such state must be registered via this hook.
(&mut self, clearable: Box<dyn Clearable>)
| 310 | /// to it to reset it as part of the `clear` operation. In those cases, such state must be |
| 311 | /// registered via this hook. |
| 312 | pub fn add_clearable(&mut self, clearable: Box<dyn Clearable>) { |
| 313 | self.clearables.push(clearable); |
| 314 | } |
| 315 | |
| 316 | /// Returns the current yielder, if one has been configured. |
| 317 | pub fn yielder(&self) -> Option<Rc<RefCell<dyn Yielder>>> { |