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

Function add_all

std/src/datetime.rs:166–169  ·  view source on GitHub ↗

Adds all symbols provided by this module to the given `machine`. `datetime` provides access to date and time functionality.

(machine: &mut MachineBuilder, datetime: Rc<dyn DateTime>)

Source from the content-addressed store, hash-verified

164///
165/// `datetime` provides access to date and time functionality.
166pub fn add_all(machine: &mut MachineBuilder, datetime: Rc<dyn DateTime>) {
167 machine.add_callable(MonotonicFunction::new(datetime.clone()));
168 machine.add_callable(SleepCommand::new(datetime));
169}
170
171#[cfg(test)]
172mod tests {

Callers

nothing calls this directly

Calls 1

add_callableMethod · 0.45

Tested by

no test coverage detected