use super::*;
#[derive(Debug, Clone, Copy)]
pub struct AltMatch<'t, 'input> {
pub(crate) full_text: &'input str,
pub(crate) matched_index: usize,
pub(crate) child: Match<'t, 'input>,
}
impl<'t, 'input> AltMatch<'t, 'input> {
pub fn text(&self) -> &'input str {
self.full_text
}
pub fn matched_index(&self) -> usize {
self.matched_index
}
pub fn get(&'t self) -> Match<'t, 'input> {
self.child
}
}