pub trait TokenProducer {
type Error<'t>;
// Required method
fn parse_token<'t>(
&self,
whole_input: &'t str,
position: usize,
) -> Result<TokenMatch<'t>, Self::Error<'t>>;
}
Required Associated Types§
Required Methods§
fn parse_token<'t>( &self, whole_input: &'t str, position: usize, ) -> Result<TokenMatch<'t>, Self::Error<'t>>
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.