Trait ExecutionMode

Source
pub trait ExecutionMode: Default {
    type SourceTime: TimeRepresentation;

    // Required methods
    fn new(time: Self::SourceTime) -> Self;
    fn time_representation(&self) -> &Self::SourceTime;
}
Expand description

The execution mode of the interpreter. See the README for more details.

Required Associated Types§

Source

type SourceTime: TimeRepresentation

The TimeRepresentation used during execution.

Required Methods§

Source

fn new(time: Self::SourceTime) -> Self

Creates a new ExecutionMode with initíalized Time.

Source

fn time_representation(&self) -> &Self::SourceTime

Returns the inner TimeRepresentation.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§