Overrides the default date and time implementation with the given one.
(mut self, datetime: Rc<dyn datetime::DateTime>)
| 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 { |
no outgoing calls