Lines Matching defs:for
60 impl<'t> From<Match<'t>> for Range<usize> {
66 /// A compiled regular expression for matching arbitrary bytes.
80 impl fmt::Display for Regex {
87 impl fmt::Debug for Regex {
94 /// A constructor for Regex from an Exec.
98 impl From<Exec> for Regex {
104 impl FromStr for Regex {
123 /// Returns true if and only if there is a match for the regex in the
170 /// Returns an iterator for each successive non-overlapping match in
183 /// for mat in Regex::new(r"\b\w{13}\b").unwrap().find_iter(text) {
197 /// capturing group matches. Otherwise, `find` is faster for discovering
203 /// like "'Citizen Kane' (1941)". It'd be nice if we could search for text
279 /// for caps in re.captures_iter(text) {
444 /// regard for capturing group expansion. This can be done by wrapping a
469 /// See the documentation for `replace` for details on how to access
483 /// See the documentation for `replace` for details on how to access
498 for (i, m) in it {
518 for (i, cap) in it {
538 /// `is_match`, except it provides an end location for a match. In
637 /// An undocumented alias for `captures_read_at`.
676 /// An alias for `capture_locations` to preserve backward compatibility.
686 /// An iterator over all non-overlapping matches for a particular string.
697 impl<'r, 't> Iterator for Matches<'r, 't> {
706 impl<'r, 't> FusedIterator for Matches<'r, 't> {}
720 impl<'r, 't> Iterator for CaptureMatches<'r, 't> {
732 impl<'r, 't> FusedIterator for CaptureMatches<'r, 't> {}
744 impl<'r, 't> Iterator for Split<'r, 't> {
768 impl<'r, 't> FusedIterator for Split<'r, 't> {}
782 impl<'r, 't> Iterator for SplitN<'r, 't> {
810 impl<'r, 't> FusedIterator for SplitN<'r, 't> {}
821 impl<'r> Iterator for CaptureNames<'r> {
840 impl<'r> ExactSizeIterator for CaptureNames<'r> {}
842 impl<'r> FusedIterator for CaptureNames<'r> {}
862 /// A type alias for `CaptureLocations` for backwards compatibility.
889 /// An alias for the `get` method for backwards compatibility.
901 /// Captures represents a group of captured byte strings for a single match.
942 /// Returns the match for the capture group named `name`. If `name` isn't a
950 /// participate in the match, then `None` is yielded for that capture.
992 impl<'t> fmt::Debug for Captures<'t> {
1000 impl<'c, 't> fmt::Debug for CapturesDebug<'c, 't> {
1004 for &b in bytes {
1022 for (slot, m) in self.0.locs.iter().enumerate() {
1045 impl<'t> Index<usize> for Captures<'t> {
1067 impl<'t, 'i> Index<&'i str> for Captures<'t> {
1081 /// is yielded for that capture. The first match always corresponds to the
1092 impl<'c, 't> Iterator for SubCaptureMatches<'c, 't> {
1102 impl<'c, 't> FusedIterator for SubCaptureMatches<'c, 't> {}
1108 /// since implementations are already provided for `&[u8]` along with other
1127 /// In general, this is called once for every call to `replacen`.
1158 /// By-reference adaptor for a `Replacer`
1164 impl<'a, R: Replacer + ?Sized + 'a> Replacer for ReplacerRef<'a, R> {
1173 impl<'a> Replacer for &'a [u8] {
1183 impl<'a> Replacer for &'a Vec<u8> {
1193 impl Replacer for Vec<u8> {
1203 impl<'a> Replacer for Cow<'a, [u8]> {
1213 impl<'a> Replacer for &'a Cow<'a, [u8]> {
1231 impl<F, T> Replacer for F
1245 /// groups. This can be both convenient (to avoid escaping `$`, for example)
1252 impl<'t> Replacer for NoExpand<'t> {