pub struct ExpressionEnv<'a> {
pub now: Option<f64>,
pub offset: Option<&'a (dyn Fn(f64) -> i32 + Send + Sync)>,
pub max_steps: Option<usize>,
}Expand description
The clock, the team zone and the step limit an evaluation runs with.
Fields§
§now: Option<f64>Epoch ms today() / now() read; None = the wall clock.
offset: Option<&'a (dyn Fn(f64) -> i32 + Send + Sync)>Minutes east of UTC at an instant; None = UTC.
max_steps: Option<usize>The step limit (default MAX_STEPS).
Trait Implementations§
Source§impl<'a> Clone for ExpressionEnv<'a>
impl<'a> Clone for ExpressionEnv<'a>
impl<'a> Copy for ExpressionEnv<'a>
Source§impl Debug for ExpressionEnv<'_>
impl Debug for ExpressionEnv<'_>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ExpressionEnv<'a>
impl<'a> !UnwindSafe for ExpressionEnv<'a>
impl<'a> Freeze for ExpressionEnv<'a>
impl<'a> Send for ExpressionEnv<'a>
impl<'a> Sync for ExpressionEnv<'a>
impl<'a> Unpin for ExpressionEnv<'a>
impl<'a> UnsafeUnpin for ExpressionEnv<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more