#[derive(Debug)] pub struct Preg; impl Preg { pub fn r#match(pattern: &str, subject: &str) -> anyhow::Result { todo!() } pub fn match3( pattern: &str, subject: &str, matches: Option<&mut indexmap::IndexMap>, ) -> anyhow::Result { todo!() } pub fn match4( pattern: &str, subject: &str, matches: Option<&mut indexmap::IndexMap>, flags: i64, ) -> anyhow::Result { todo!() } pub fn match5( pattern: &str, subject: &str, matches: Option<&mut indexmap::IndexMap>, flags: i64, offset: usize, ) -> anyhow::Result { todo!() } pub fn match_strict_groups(pattern: &str, subject: &str) -> anyhow::Result { todo!() } pub fn match_strict_groups3( pattern: &str, subject: &str, matches: Option<&mut indexmap::IndexMap>, ) -> anyhow::Result { todo!() } pub fn match_strict_groups4( pattern: &str, subject: &str, matches: Option<&mut indexmap::IndexMap>, flags: i64, ) -> anyhow::Result { todo!() } pub fn match_strict_groups5( pattern: &str, subject: &str, matches: Option<&mut indexmap::IndexMap>, flags: i64, offset: usize, ) -> anyhow::Result { todo!() } pub fn match_with_offsets(pattern: &str, subject: &str) -> anyhow::Result { todo!() } pub fn match_with_offsets3( pattern: &str, subject: &str, matches: Option<&mut indexmap::IndexMap>, ) -> anyhow::Result { todo!() } pub fn match_with_offsets4( pattern: &str, subject: &str, matches: Option<&mut indexmap::IndexMap>, flags: i64, ) -> anyhow::Result { todo!() } pub fn match_with_offsets5( pattern: &str, subject: &str, matches: Option<&mut indexmap::IndexMap>, flags: i64, offset: usize, ) -> anyhow::Result { todo!() } pub fn match_all(pattern: &str, subject: &str) -> anyhow::Result { todo!() } pub fn match_all3( pattern: &str, subject: &str, matches: Option<&mut indexmap::IndexMap>>, ) -> anyhow::Result { todo!() } pub fn match_all4( pattern: &str, subject: &str, matches: Option<&mut indexmap::IndexMap>>, flags: i64, ) -> anyhow::Result { todo!() } pub fn match_all5( pattern: &str, subject: &str, matches: Option<&mut indexmap::IndexMap>>, flags: i64, offset: usize, ) -> anyhow::Result { todo!() } pub fn match_all_strict_groups(pattern: &str, subject: &str) -> anyhow::Result { todo!() } pub fn match_all_strict_groups3( pattern: &str, subject: &str, matches: Option<&mut indexmap::IndexMap>>, ) -> anyhow::Result { todo!() } pub fn match_all_strict_groups4( pattern: &str, subject: &str, matches: Option<&mut indexmap::IndexMap>>, flags: i64, ) -> anyhow::Result { todo!() } pub fn match_all_strict_groups5( pattern: &str, subject: &str, matches: Option<&mut indexmap::IndexMap>>, flags: i64, offset: usize, ) -> anyhow::Result { todo!() } pub fn match_all_with_offsets(pattern: &str, subject: &str) -> anyhow::Result { todo!() } pub fn match_all_with_offsets3( pattern: &str, subject: &str, matches: Option<&mut indexmap::IndexMap>>, ) -> anyhow::Result { todo!() } pub fn match_all_with_offsets4( pattern: &str, subject: &str, matches: Option<&mut indexmap::IndexMap>>, flags: i64, ) -> anyhow::Result { todo!() } pub fn match_all_with_offsets5( pattern: &str, subject: &str, matches: Option<&mut indexmap::IndexMap>>, flags: i64, offset: usize, ) -> anyhow::Result { todo!() } pub fn replace(pattern: &str, replacement: &str, subject: &str) -> anyhow::Result { todo!() } pub fn replace4( pattern: &str, replacement: &str, subject: &str, limit: i64, ) -> anyhow::Result { todo!() } pub fn replace5( pattern: &str, replacement: &str, subject: &str, limit: i64, count: &mut usize, ) -> anyhow::Result { todo!() } pub fn replace_callback) -> String>( pattern: &str, replacement: F, subject: &str, ) -> anyhow::Result { todo!() } pub fn replace_callback4) -> String>( pattern: &str, replacement: F, subject: &str, limit: i64, ) -> anyhow::Result { todo!() } pub fn replace_callback5) -> String>( pattern: &str, replacement: F, subject: &str, limit: i64, count: &mut usize, ) -> anyhow::Result { todo!() } pub fn replace_callback6) -> String>( pattern: &str, replacement: F, subject: &str, limit: i64, count: Option<&mut usize>, flags: i64, ) -> anyhow::Result { todo!() } pub fn replace_callback_array( pattern: &indexmap::IndexMap, subject: &str, ) -> anyhow::Result { todo!() } pub fn replace_callback_array3( pattern: &indexmap::IndexMap, subject: &str, limit: i64, ) -> anyhow::Result { todo!() } pub fn replace_callback_array4( pattern: &indexmap::IndexMap, subject: &str, limit: i64, count: &mut usize, ) -> anyhow::Result { todo!() } pub fn replace_callback_array5( pattern: &indexmap::IndexMap, subject: &str, limit: i64, count: Option<&mut usize>, flags: i64, ) -> anyhow::Result { todo!() } pub fn split(pattern: &str, subject: &str) -> anyhow::Result> { todo!() } pub fn split3(pattern: &str, subject: &str, limit: i64) -> anyhow::Result> { todo!() } pub fn split4( pattern: &str, subject: &str, limit: i64, flags: i64, ) -> anyhow::Result> { todo!() } pub fn split_with_offsets( pattern: &str, subject: &str, ) -> anyhow::Result> { todo!() } pub fn split_with_offsets3( pattern: &str, subject: &str, limit: i64, ) -> anyhow::Result> { todo!() } pub fn split_with_offsets4( pattern: &str, subject: &str, limit: i64, flags: i64, ) -> anyhow::Result> { todo!() } pub fn grep(pattern: &str, array: &[&str]) -> anyhow::Result> { todo!() } pub fn grep3(pattern: &str, array: &[&str], flags: i64) -> anyhow::Result> { todo!() } pub fn is_match(pattern: &str, subject: &str) -> anyhow::Result { todo!() } pub fn is_match3( pattern: &str, subject: &str, matches: Option<&mut indexmap::IndexMap>, ) -> anyhow::Result { todo!() } pub fn is_match4( pattern: &str, subject: &str, matches: Option<&mut indexmap::IndexMap>, flags: i64, ) -> anyhow::Result { todo!() } pub fn is_match5( pattern: &str, subject: &str, matches: Option<&mut indexmap::IndexMap>, flags: i64, offset: usize, ) -> anyhow::Result { todo!() } pub fn is_match_strict_groups(pattern: &str, subject: &str) -> anyhow::Result { todo!() } pub fn is_match_strict_groups3( pattern: &str, subject: &str, matches: Option<&mut indexmap::IndexMap>, ) -> anyhow::Result { todo!() } pub fn is_match_strict_groups4( pattern: &str, subject: &str, matches: Option<&mut indexmap::IndexMap>, flags: i64, ) -> anyhow::Result { todo!() } pub fn is_match_strict_groups5( pattern: &str, subject: &str, matches: Option<&mut indexmap::IndexMap>, flags: i64, offset: usize, ) -> anyhow::Result { todo!() } pub fn is_match_with_offsets(pattern: &str, subject: &str) -> anyhow::Result { todo!() } pub fn is_match_with_offsets3( pattern: &str, subject: &str, matches: Option<&mut indexmap::IndexMap>, ) -> anyhow::Result { todo!() } pub fn is_match_with_offsets4( pattern: &str, subject: &str, matches: Option<&mut indexmap::IndexMap>, flags: i64, ) -> anyhow::Result { todo!() } pub fn is_match_with_offsets5( pattern: &str, subject: &str, matches: Option<&mut indexmap::IndexMap>, flags: i64, offset: usize, ) -> anyhow::Result { todo!() } pub fn is_match_all(pattern: &str, subject: &str) -> anyhow::Result { todo!() } pub fn is_match_all3( pattern: &str, subject: &str, matches: Option<&mut indexmap::IndexMap>>, ) -> anyhow::Result { todo!() } pub fn is_match_all4( pattern: &str, subject: &str, matches: Option<&mut indexmap::IndexMap>>, flags: i64, ) -> anyhow::Result { todo!() } pub fn is_match_all5( pattern: &str, subject: &str, matches: Option<&mut indexmap::IndexMap>>, flags: i64, offset: usize, ) -> anyhow::Result { todo!() } pub fn is_match_all_strict_groups(pattern: &str, subject: &str) -> anyhow::Result { todo!() } pub fn is_match_all_strict_groups3( pattern: &str, subject: &str, matches: Option<&mut indexmap::IndexMap>>, ) -> anyhow::Result { todo!() } pub fn is_match_all_strict_groups4( pattern: &str, subject: &str, matches: Option<&mut indexmap::IndexMap>>, flags: i64, ) -> anyhow::Result { todo!() } pub fn is_match_all_strict_groups5( pattern: &str, subject: &str, matches: Option<&mut indexmap::IndexMap>>, flags: i64, offset: usize, ) -> anyhow::Result { todo!() } pub fn is_match_all_with_offsets(pattern: &str, subject: &str) -> anyhow::Result { todo!() } pub fn is_match_all_with_offsets3( pattern: &str, subject: &str, matches: Option<&mut indexmap::IndexMap>>, ) -> anyhow::Result { todo!() } pub fn is_match_all_with_offsets4( pattern: &str, subject: &str, matches: Option<&mut indexmap::IndexMap>>, flags: i64, ) -> anyhow::Result { todo!() } pub fn is_match_all_with_offsets5( pattern: &str, subject: &str, matches: Option<&mut indexmap::IndexMap>>, flags: i64, offset: usize, ) -> anyhow::Result { todo!() } } #[derive(Debug, Clone, PartialOrd, Ord, PartialEq, Eq, Hash)] pub enum CaptureKey { ByIndex(usize), ByName(String), }