Lines Matching refs:Regex
124 /// use regex::Regex;
128 /// let re = Regex::new(r"python\d$").unwrap();
138 /// use regex::Regex;
140 /// which_re(Regex::new("^cargo-.*").unwrap()).unwrap()
144 pub fn which_re(regex: impl Borrow<Regex>) -> Result<impl Iterator<Item = path::PathBuf>> {
172 /// use regex::Regex;
176 /// let re = Regex::new(r"python\d$").unwrap();
184 regex: impl Borrow<Regex>,
243 regex: Option<Regex>,
259 type Regex = regex::Regex;
262 type Regex = ();
299 /// When `Regex` is disabled this function takes the unit type as a stand in. The parameter will change when
300 /// `Regex` is enabled.
308 pub fn regex(mut self, regex: Regex) -> Self {