pub trait Machine {
type Input;
type Output;
// Required methods
fn step(self, input: Self::Input) -> (Self::Output, Self)
where Self: Sized;
fn describe<V>(&self, visitor: &mut V) -> <V as Structure>::Output
where V: Structure;
}Expand description
A stateful transducer whose composition remains structurally inspectable.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".