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§
Sourcetype SourceTime: TimeRepresentation
type SourceTime: TimeRepresentation
The TimeRepresentation used during execution.
Required Methods§
Sourcefn new(time: Self::SourceTime) -> Self
fn new(time: Self::SourceTime) -> Self
Creates a new ExecutionMode with initíalized Time.
Sourcefn time_representation(&self) -> &Self::SourceTime
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.