1
1
//! Licensed under the Apache License, Version 2.0
2
- //! http://www.apache.org/licenses/LICENSE-2.0 or the MIT license
3
- //! http://opensource.org/licenses/MIT, at your
2
+ //! < http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
3
+ //! < http://opensource.org/licenses/MIT> , at your
4
4
//! option. This file may not be copied, modified, or distributed
5
5
//! except according to those terms.
6
6
@@ -24,7 +24,7 @@ use crate::size_hint;
24
24
///
25
25
/// This iterator is *fused*.
26
26
///
27
- /// See [`.interleave()`](../trait. Itertools.html#method. interleave) for more information.
27
+ /// See [`.interleave()`](crate:: Itertools:: interleave) for more information.
28
28
#[ derive( Clone , Debug ) ]
29
29
#[ must_use = "iterator adaptors are lazy and do nothing unless consumed" ]
30
30
pub struct Interleave < I , J > {
@@ -37,7 +37,7 @@ pub struct Interleave<I, J> {
37
37
///
38
38
/// `IntoIterator` enabled version of `i.interleave(j)`.
39
39
///
40
- /// See [`.interleave()`](trait. Itertools.html#method. interleave) for more information.
40
+ /// See [`.interleave()`](crate:: Itertools:: interleave) for more information.
41
41
pub fn interleave < I , J > ( i : I , j : J ) -> Interleave < <I as IntoIterator >:: IntoIter , <J as IntoIterator >:: IntoIter >
42
42
where I : IntoIterator ,
43
43
J : IntoIterator < Item = I :: Item >
@@ -80,7 +80,7 @@ impl<I, J> Iterator for Interleave<I, J>
80
80
///
81
81
/// This iterator is *fused*.
82
82
///
83
- /// See [`.interleave_shortest()`](../trait. Itertools.html#method. interleave_shortest)
83
+ /// See [`.interleave_shortest()`](crate:: Itertools:: interleave_shortest)
84
84
/// for more information.
85
85
#[ derive( Clone , Debug ) ]
86
86
#[ must_use = "iterator adaptors are lazy and do nothing unless consumed" ]
@@ -271,7 +271,7 @@ impl<I> Iterator for PutBack<I>
271
271
///
272
272
/// Iterator element type is `(I::Item, J::Item)`.
273
273
///
274
- /// See [`.cartesian_product()`](../trait. Itertools.html#method. cartesian_product) for more information.
274
+ /// See [`.cartesian_product()`](crate:: Itertools:: cartesian_product) for more information.
275
275
#[ must_use = "iterator adaptors are lazy and do nothing unless consumed" ]
276
276
pub struct Product < I , J >
277
277
where I : Iterator
@@ -366,7 +366,7 @@ impl<I, J> Iterator for Product<I, J>
366
366
///
367
367
/// Iterator element type is *X*, if the return type of `F` is *Option\<X\>*.
368
368
///
369
- /// See [`.batching()`](../trait. Itertools.html#method. batching) for more information.
369
+ /// See [`.batching()`](crate:: Itertools:: batching) for more information.
370
370
#[ derive( Clone ) ]
371
371
#[ must_use = "iterator adaptors are lazy and do nothing unless consumed" ]
372
372
pub struct Batching < I , F > {
@@ -400,7 +400,7 @@ impl<B, F, I> Iterator for Batching<I, F>
400
400
/// The iterator steps by yielding the next element from the base iterator,
401
401
/// then skipping forward *n-1* elements.
402
402
///
403
- /// See [`.step()`](../trait. Itertools.html#method. step) for more information.
403
+ /// See [`.step()`](crate:: Itertools:: step) for more information.
404
404
#[ deprecated( note="Use std .step_by() instead" , since="0.8.0" ) ]
405
405
#[ allow( deprecated) ]
406
406
#[ derive( Clone , Debug ) ]
@@ -475,7 +475,7 @@ impl<T: PartialOrd> MergePredicate<T> for MergeLte {
475
475
///
476
476
/// Iterator element type is `I::Item`.
477
477
///
478
- /// See [`.merge()`](../trait. Itertools.html#method. merge_by) for more information.
478
+ /// See [`.merge()`](crate:: Itertools:: merge_by) for more information.
479
479
#[ must_use = "iterator adaptors are lazy and do nothing unless consumed" ]
480
480
pub type Merge < I , J > = MergeBy < I , J , MergeLte > ;
481
481
@@ -503,7 +503,7 @@ pub fn merge<I, J>(i: I, j: J) -> Merge<<I as IntoIterator>::IntoIter, <J as Int
503
503
///
504
504
/// Iterator element type is `I::Item`.
505
505
///
506
- /// See [`.merge_by()`](../trait. Itertools.html#method. merge_by) for more information.
506
+ /// See [`.merge_by()`](crate:: Itertools:: merge_by) for more information.
507
507
#[ must_use = "iterator adaptors are lazy and do nothing unless consumed" ]
508
508
pub struct MergeBy < I , J , F >
509
509
where I : Iterator ,
@@ -591,7 +591,7 @@ impl<I, J, F> Iterator for MergeBy<I, J, F>
591
591
/// An iterator adaptor that borrows from a `Clone`-able iterator
592
592
/// to only pick off elements while the predicate returns `true`.
593
593
///
594
- /// See [`.take_while_ref()`](../trait. Itertools.html#method. take_while_ref) for more information.
594
+ /// See [`.take_while_ref()`](crate:: Itertools:: take_while_ref) for more information.
595
595
#[ must_use = "iterator adaptors are lazy and do nothing unless consumed" ]
596
596
pub struct TakeWhileRef < ' a , I : ' a , F > {
597
597
iter : & ' a mut I ,
@@ -640,7 +640,7 @@ impl<'a, I, F> Iterator for TakeWhileRef<'a, I, F>
640
640
/// An iterator adaptor that filters `Option<A>` iterator elements
641
641
/// and produces `A`. Stops on the first `None` encountered.
642
642
///
643
- /// See [`.while_some()`](../trait. Itertools.html#method. while_some) for more information.
643
+ /// See [`.while_some()`](crate:: Itertools:: while_some) for more information.
644
644
#[ derive( Clone , Debug ) ]
645
645
#[ must_use = "iterator adaptors are lazy and do nothing unless consumed" ]
646
646
pub struct WhileSome < I > {
@@ -672,7 +672,7 @@ impl<I, A> Iterator for WhileSome<I>
672
672
/// An iterator to iterate through all combinations in a `Clone`-able iterator that produces tuples
673
673
/// of a specific size.
674
674
///
675
- /// See [`.tuple_combinations()`](../trait. Itertools.html#method. tuple_combinations) for more
675
+ /// See [`.tuple_combinations()`](crate:: Itertools:: tuple_combinations) for more
676
676
/// information.
677
677
#[ derive( Clone , Debug ) ]
678
678
#[ must_use = "iterator adaptors are lazy and do nothing unless consumed" ]
@@ -822,7 +822,7 @@ impl_tuple_combination!(Tuple12Combination Tuple11Combination; A, A, A, A, A, A,
822
822
823
823
/// An iterator adapter to filter values within a nested `Result::Ok`.
824
824
///
825
- /// See [`.filter_ok()`](../trait. Itertools.html#method. filter_ok) for more information.
825
+ /// See [`.filter_ok()`](crate:: Itertools:: filter_ok) for more information.
826
826
#[ derive( Clone ) ]
827
827
#[ must_use = "iterator adaptors are lazy and do nothing unless consumed" ]
828
828
pub struct FilterOk < I , F > {
@@ -886,7 +886,7 @@ impl<I, F, T, E> Iterator for FilterOk<I, F>
886
886
887
887
/// An iterator adapter to filter and apply a transformation on values within a nested `Result::Ok`.
888
888
///
889
- /// See [`.filter_map_ok()`](../trait. Itertools.html#method. filter_map_ok) for more information.
889
+ /// See [`.filter_map_ok()`](crate:: Itertools:: filter_map_ok) for more information.
890
890
#[ must_use = "iterator adaptors are lazy and do nothing unless consumed" ]
891
891
pub struct FilterMapOk < I , F > {
892
892
iter : I ,
@@ -957,7 +957,7 @@ impl<I, F, T, U, E> Iterator for FilterMapOk<I, F>
957
957
958
958
/// An iterator adapter to get the positions of each element that matches a predicate.
959
959
///
960
- /// See [`.positions()`](../trait. Itertools.html#method. positions) for more information.
960
+ /// See [`.positions()`](crate:: Itertools:: positions) for more information.
961
961
#[ derive( Clone ) ]
962
962
#[ must_use = "iterator adaptors are lazy and do nothing unless consumed" ]
963
963
pub struct Positions < I , F > {
@@ -1016,7 +1016,7 @@ impl<I, F> DoubleEndedIterator for Positions<I, F>
1016
1016
1017
1017
/// An iterator adapter to apply a mutating function to each element before yielding it.
1018
1018
///
1019
- /// See [`.update()`](../trait. Itertools.html#method. update) for more information.
1019
+ /// See [`.update()`](crate:: Itertools:: update) for more information.
1020
1020
#[ derive( Clone ) ]
1021
1021
#[ must_use = "iterator adaptors are lazy and do nothing unless consumed" ]
1022
1022
pub struct Update < I , F > {
0 commit comments