xgrammar/parser/capture_occurrence.rs
1//! A concrete occurrence of a captured rule in an Earley parent chain.
2
3/// A rule occurrence identified by its rule id and start position.
4#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
5pub struct CaptureOccurrence {
6 /// The id of the captured rule.
7 pub rule_id: i32,
8 /// The position where the rule occurrence started.
9 pub start_pos: i32,
10}