pub trait TokenInput<'t, 's>: ValueInput<'t, Token = Token<'s>, Span = SimpleSpan> { }Expand description
The input bound every parser in this module is generic over.
This is a blanket-implemented convenience for
ValueInput<'t, Token = Token<'s>, Span = SimpleSpan>, which is what
token_stream produces. Written out in a where clause on every
parser function that bound is most of the signature; naming it keeps the
grammar readable.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".