Overrides the default stored program with the given one.
(mut self, program: Rc<RefCell<dyn program::Program>>)
| 462 | |
| 463 | /// Overrides the default stored program with the given one. |
| 464 | pub fn with_program(mut self, program: Rc<RefCell<dyn program::Program>>) -> Self { |
| 465 | self.program = Some(program); |
| 466 | self |
| 467 | } |
| 468 | |
| 469 | /// Overrides the default storage subsystem with the given one. |
| 470 | pub fn with_storage(mut self, storage: Rc<RefCell<storage::Storage>>) -> Self { |
no outgoing calls