pub trait FiniteAutomata<T>: Sized {
type State;
type Item: Debug + PartialEq + Eq + 'static;
// Required method
fn get_next(self, c: Self::Item) -> GetNextResult<T, Self>;
}
Required Associated Types§
Required Methods§
fn get_next(self, c: Self::Item) -> GetNextResult<T, Self>
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.