tamer: parse::ParseState::Context: Add missing comment

DEV-11864
main
Mike Gerwitz 2022-05-10 11:06:22 -04:00
parent 0ef0d2b553
commit 0493e68cb3
1 changed files with 5 additions and 0 deletions

View File

@ -123,6 +123,11 @@ pub trait ParseState: Default + PartialEq + Eq + Debug {
/// Errors specific to this set of states.
type Error: Debug + Diagnostic + PartialEq;
/// Object provided to parser alongside each token.
///
/// This may be used in situations where Rust/LLVM are unable to
/// optimize away moves of interior data associated with the
/// otherwise-immutable [`ParseState`].
type Context: Debug = EmptyContext;
/// Construct a parser.