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

Method with_datetime

std/src/lib.rs:328–331  ·  view source on GitHub ↗

Overrides the default date and time implementation with the given one.

(mut self, datetime: Rc<dyn datetime::DateTime>)

Source from the content-addressed store, hash-verified

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 {
329 self.datetime = Some(datetime);
330 self
331 }
332
333 /// Sets a global variable to an initial value.
334 pub fn with_globals(mut self, defs: Vec<GlobalDef>) -> Self {

Callers 4

build_machineMethod · 0.80
safe_run_repl_loopMethod · 0.80

Calls

no outgoing calls

Tested by 3

build_machineMethod · 0.64