Lines Matching defs:matches

3420     // where `size_hint()` matches `(_, Some(exact_len))`.
3457 // Exercise the `TrustedLen` implementation when `size_hint()` matches
3471 // Exercise the `TrustedLen` implementation when `size_hint()` matches
5437 with str::matches, str::rmatches;
9173 // where `size_hint()` matches `(_, Some(exact_len))`.
9210 // Exercise the `TrustedLen` implementation when `size_hint()` matches
9224 // Exercise the `TrustedLen` implementation when `size_hint()` matches
11066 let [..] = v[..]; // Always matches.
11075 let [..] = v[..]; // Always matches.
11084 let [..] = &v[..]; // Always matches.
11093 let [..] = &mut v[..]; // Always matches.
15214 /// Replaces all matches of a pattern with another string.
15217 /// While doing so, it attempts to find matches of a pattern. If it finds any, it
15252 /// Replaces first N matches of a pattern with another string.
15255 /// While doing so, it attempts to find matches of a pattern. If it finds any, it
17376 /// Remove all matches of pattern `pat` in the `String`.
17403 let matches = {
17405 let mut matches = Vec::new();
17408 matches.push(m);
17411 matches
17420 for (start, end) in matches {
28807 // check that len matches interior links.
32301 // iterate all of `self` and some of `other`, spotting matches along the way
32349 // iterate similarly sized sets jointly, spotting matches along the way
36754 assert!(matches!(result, Ok(None)));
42758 /// index of the matching element. If there are multiple matches, then any
42759 /// one of the matches could be returned. If the value is not found then
42785 /// assert!(matches!(r, Ok(1..=4)));
42818 /// index of the matching element. If there are multiple matches, then any
42819 /// one of the matches could be returned. If the value is not found then
42845 /// assert!(matches!(r, Ok(1..=4)));
42870 /// index of the matching element. If there are multiple matches, then any
42871 /// one of the matches could be returned. If the value is not found then
42901 /// assert!(matches!(r, Ok(1..=4)));
49661 /// if its size exactly matches that of the requested array.