diff options
Diffstat (limited to '')
-rw-r--r-- | vendor/pest/src/token.rs | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/vendor/pest/src/token.rs b/vendor/pest/src/token.rs index 68cb1a6ee..6ca10c5b7 100644 --- a/vendor/pest/src/token.rs +++ b/vendor/pest/src/token.rs @@ -13,7 +13,17 @@ use crate::position::Position; #[derive(Clone, Debug, Eq, Hash, PartialEq)] pub enum Token<'i, R> { /// The starting `Position` of a matched `Rule` - Start { rule: R, pos: Position<'i> }, + Start { + /// matched rule + rule: R, + /// starting position + pos: Position<'i>, + }, /// The ending `Position` of a matched `Rule` - End { rule: R, pos: Position<'i> }, + End { + /// matched rule + rule: R, + /// ending position + pos: Position<'i>, + }, } |