Registers the given builtin command into the machine, which must not yet be registered.
(mut self, callable: Rc<dyn Callable>)
| 643 | |
| 644 | /// Registers the given builtin command into the machine, which must not yet be registered. |
| 645 | pub fn add_callable(mut self, callable: Rc<dyn Callable>) -> Self { |
| 646 | self.callables.push(callable); |
| 647 | self |
| 648 | } |
| 649 | |
| 650 | /// Adds the `golden_in` characters as console input. |
| 651 | pub fn add_input_chars(self, golden_in: &str) -> Self { |