From 64d98f8ee037282c35007b64c2649055c56af1db Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:03 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- vendor/pest/src/token.rs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'vendor/pest/src/token.rs') 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>, + }, } -- cgit v1.2.3