pub(crate) trait Regex { // Required methods fn test(&self, text: &str) -> bool; fn capture(&self, text: &str) -> Vec<Vec<String>>; }