Searched refs:MatchPosition (Results 1 – 2 of 2) sorted by relevance
/external/rust/crates/rayon/src/iter/find_first_last/ |
D | mod.rs | 27 enum MatchPosition { enum 34 fn better_position(pos1: usize, pos2: usize, mp: MatchPosition) -> bool { in better_position() 36 MatchPosition::Leftmost => pos1 < pos2, in better_position() 37 MatchPosition::Rightmost => pos1 > pos2, in better_position() 47 let consumer = FindConsumer::new(&find_op, MatchPosition::Leftmost, &best_found); in find_first() 57 let consumer = FindConsumer::new(&find_op, MatchPosition::Rightmost, &best_found); in find_last() 65 match_position: MatchPosition, 70 fn new(find_op: &'p P, match_position: MatchPosition, best_found: &'p AtomicUsize) -> Self { in new() argument 82 MatchPosition::Leftmost => self.lower_bound.get(), in current_index() 83 MatchPosition::Rightmost => self.upper_bound, in current_index() [all …]
|
D | test.rs | 8 let far_right_consumer = FindConsumer::new(&find_op, MatchPosition::Leftmost, &first_found); in same_range_first_consumers_return_correct_answer() 44 let consumer = FindConsumer::new(&find_op, MatchPosition::Rightmost, &last_found); in same_range_last_consumers_return_correct_answer() 85 match_position: MatchPosition::Leftmost, in find_first_folder_does_not_clobber_first_found() 100 match_position: MatchPosition::Rightmost, in find_last_folder_yields_last_match()
|