MCPcopy Index your code
hub / github.com/endbasic/endbasic / with_console

Method with_console

std/src/lib.rs:322–325  ·  view source on GitHub ↗

Overrides the default terminal-based console with the given one.

(mut self, console: Rc<RefCell<dyn console::Console>>)

Source from the content-addressed store, hash-verified

320
321 /// Overrides the default terminal-based console with the given one.
322 pub fn with_console(mut self, console: Rc<RefCell<dyn console::Console>>) -> Self {
323 self.console = Some(console);
324 self
325 }
326
327 /// Overrides the default date and time implementation with the given one.
328 pub fn with_datetime(mut self, datetime: Rc<dyn datetime::DateTime>) -> Self {

Calls

no outgoing calls