Return the text being searched.
(&self)
| 181 | impl<'t, R> Matches<'t, R> where R: RegularExpression, R::Text: 't { |
| 182 | /// Return the text being searched. |
| 183 | pub fn text(&self) -> &'t R::Text { |
| 184 | self.text |
| 185 | } |
| 186 | |
| 187 | /// Return the underlying regex. |
| 188 | pub fn regex(&self) -> &R { |