Expand description
This module contains types which implement the Tokens interface. You
won’t often need to import this module unless you wish to explicitly name
the types in question.
In most cases, you can remain generic by using t: impl Tokens<char> over
t: StrTokens<'a> as an argument to a function.
Structs
This is what we are given back if we call
into_tokens() on
a &[T]. It implements the Tokens interface.This is what we are given back if we call
into_tokens() on
a &str. It implements the Tokens interface.Embed some context with your
Tokens implementation to
access at any time. Use Tokens::with_context to produce this.Embed some context with a mutable reference to your
Tokens to
access at any time. Use Tokens::with_context to produce this.