Lines Matching refs:right
13 pub fn merge_join_by<I, J, F>(left: I, right: J, cmp_fn: F) in merge_join_by()
21 right: put_back(right.into_iter().fuse()), in merge_join_by()
32 right: PutBack<Fuse<J>>, field
43 clone_fields!(left, right, cmp_fn);
52 debug_fmt_fields!(MergeJoinBy, left, right);
63 match (self.left.next(), self.right.next()) { in next()
67 (None, Some(right)) => in next()
68 Some(EitherOrBoth::Right(right)), in next()
69 (Some(left), Some(right)) => { in next()
70 match (self.cmp_fn)(&left, &right) { in next()
72 Some(EitherOrBoth::Both(left, right)), in next()
74 self.right.put_back(right); in next()
79 Some(EitherOrBoth::Right(right)) in next()
88 let (b_lower, b_upper) = self.right.size_hint(); in size_hint()
103 match (self.left.next(), self.right.next()) { in count()
106 (None, Some(_right)) => break count + 1 + self.right.into_parts().1.count(), in count()
107 (Some(left), Some(right)) => { in count()
109 match (self.cmp_fn)(&left, &right) { in count()
111 Ordering::Less => self.right.put_back(right), in count()
122 match (self.left.next(), self.right.next()) { in last()
129 (None, Some(right)) => { in last()
131 self.right.into_parts().1.last().unwrap_or(right), in last()
134 (Some(left), Some(right)) => { in last()
135 previous_element = match (self.cmp_fn)(&left, &right) { in last()
136 Ordering::Equal => Some(EitherOrBoth::Both(left, right)), in last()
138 self.right.put_back(right); in last()
143 Some(EitherOrBoth::Right(right)) in last()
157 match (self.left.next(), self.right.next()) { in nth()
160 (None, Some(_right)) => break self.right.nth(n).map(EitherOrBoth::Right), in nth()
161 (Some(left), Some(right)) => match (self.cmp_fn)(&left, &right) { in nth()
163 Ordering::Less => self.right.put_back(right), in nth()