(self: Box<Self>)
| 67 | |
| 68 | impl ConsoleFactory for SdlConsoleFactory { |
| 69 | fn build(self: Box<Self>) -> io::Result<Rc<RefCell<dyn Console>>> { |
| 70 | let console = self.build_console()?; |
| 71 | Ok(Rc::from(RefCell::from(console))) |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | /// Creates a new SDL console host and a factory for the client. |