pub trait Interpreter<TCommand> {
type ErrorType;
// Required methods
fn execute(
&mut self,
resid: usize,
cmd: TCommand,
) -> Result<(), Self::ErrorType>;
fn progress(
&mut self,
curcmd: usize,
maxcmd: usize,
) -> Result<(), Self::ErrorType>;
}Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".