1 2 3 4 5 6 7 8 9 10 11 12 13 14
mod regex;
pub use regex::Regex;
pub struct Capture<'a, I> {
pub start: usize,
pub end: usize,
pub values: Vec<&'a I>,
}
pub trait CompiledRegex<I> {
fn is_full_match(&self, input: &[I]) -> bool;
fn captures<'a>(&self, input: &'a [I]) -> Option<Vec<Capture<'a, I>>>;
}