@@ -100,8 +100,6 @@ pub type MergeAscend<I, J> where I: Iterator = Merge<I, J, fn(&I::Item, &I::Item
100
100
/// Iterator element type is like **(A, B, ..., E)** if formed
101
101
/// from iterators **(I, J, ..., M)** with element types **I::Item = A**, **J::Item = B**, etc.
102
102
///
103
- /// ## Example
104
- ///
105
103
/// ```
106
104
/// #[macro_use]
107
105
/// extern crate itertools;
@@ -141,8 +139,6 @@ macro_rules! iproduct {
141
139
/// from iterators `(I, J, ..., M)` implementing `I: Iterator<A>`,
142
140
/// `J: Iterator<B>`, ..., `M: Iterator<E>`
143
141
///
144
- /// ## Example
145
- ///
146
142
/// ```
147
143
/// #[macro_use]
148
144
/// extern crate itertools;
@@ -194,8 +190,6 @@ macro_rules! izip {
194
190
///
195
191
/// Iterator element type is the type of `<expression>`
196
192
///
197
- /// ## Example
198
- ///
199
193
/// ```ignore
200
194
/// let mut squares = icompr!(x * x, x, 1..100);
201
195
/// ```
@@ -230,8 +224,6 @@ pub trait Itertools : Iterator {
230
224
///
231
225
/// This iterator is *fused*.
232
226
///
233
- /// ## Example
234
- ///
235
227
/// ```
236
228
/// use itertools::Itertools;
237
229
///
@@ -252,8 +244,6 @@ pub trait Itertools : Iterator {
252
244
///
253
245
/// This iterator is *fused*.
254
246
///
255
- /// ## Example
256
- ///
257
247
/// ```
258
248
/// use itertools::Itertools;
259
249
///
@@ -274,8 +264,6 @@ pub trait Itertools : Iterator {
274
264
/// When both iterators return **None**, all further invocations of *.next()*
275
265
/// will return **None**.
276
266
///
277
- /// # Example
278
- ///
279
267
/// ```rust
280
268
/// use itertools::EitherOrBoth::{Both, Right};
281
269
/// use itertools::Itertools;
@@ -297,8 +285,6 @@ pub trait Itertools : Iterator {
297
285
///
298
286
/// Iterator element type is **B**.
299
287
///
300
- /// ## Example
301
- ///
302
288
/// ```
303
289
/// use itertools::Itertools;
304
290
///
@@ -328,8 +314,6 @@ pub trait Itertools : Iterator {
328
314
///
329
315
/// Iterator element type is **(K, Vec\<Self::Item\>)**
330
316
///
331
- /// ## Example
332
- ///
333
317
/// ```
334
318
/// use itertools::Itertools;
335
319
///
@@ -354,7 +338,6 @@ pub trait Itertools : Iterator {
354
338
///
355
339
/// Iterator element type is **Self::Item**.
356
340
///
357
- /// ## Example
358
341
/// ```
359
342
/// use itertools::Itertools;
360
343
/// let xs = vec![0, 1, 2, 3];
@@ -382,7 +365,6 @@ pub trait Itertools : Iterator {
382
365
///
383
366
/// Iterator element type is **Self::Item**.
384
367
///
385
- /// ## Example
386
368
/// ```
387
369
/// use std::iter::repeat;
388
370
/// use itertools::Itertools;
@@ -408,8 +390,6 @@ pub trait Itertools : Iterator {
408
390
///
409
391
/// Iterator element type is **Self::Item**.
410
392
///
411
- /// ## Example
412
- ///
413
393
/// ```
414
394
/// use itertools::Itertools;
415
395
///
@@ -442,7 +422,6 @@ pub trait Itertools : Iterator {
442
422
///
443
423
/// **Panics** if the step is 0.
444
424
///
445
- /// ## Example
446
425
/// ```
447
426
/// use itertools::Itertools;
448
427
///
@@ -460,7 +439,6 @@ pub trait Itertools : Iterator {
460
439
///
461
440
/// Iterator element type is **Self::Item**.
462
441
///
463
- /// ## Example
464
442
/// ```
465
443
/// use itertools::Itertools;
466
444
///
@@ -487,7 +465,6 @@ pub trait Itertools : Iterator {
487
465
///
488
466
/// Iterator element type is **Self::Item**.
489
467
///
490
- /// ## Example
491
468
/// ```
492
469
/// use itertools::Itertools;
493
470
///
@@ -549,8 +526,6 @@ pub trait Itertools : Iterator {
549
526
///
550
527
/// After a call to *.next()* the peeking cursor is reset.
551
528
///
552
- /// ## Example
553
- ///
554
529
/// ```
555
530
/// use itertools::Itertools;
556
531
///
@@ -580,8 +555,6 @@ pub trait Itertools : Iterator {
580
555
///
581
556
/// This iterator is *fused*.
582
557
///
583
- /// ## Example
584
- ///
585
558
/// ```
586
559
/// use itertools::Itertools;
587
560
///
@@ -609,8 +582,6 @@ pub trait Itertools : Iterator {
609
582
///
610
583
/// This iterator is *fused*.
611
584
///
612
- /// ## Example
613
- ///
614
585
/// ```
615
586
/// use itertools::Itertools;
616
587
///
@@ -635,8 +606,6 @@ pub trait Itertools : Iterator {
635
606
/// Only implemented for iterators with slice or string slice elements.
636
607
/// Only slices that are contiguous together can be joined.
637
608
///
638
- /// ## Example
639
- ///
640
609
/// ```
641
610
/// use itertools::Itertools;
642
611
///
@@ -663,8 +632,6 @@ pub trait Itertools : Iterator {
663
632
/// It uses the **Clone** trait to restore the original iterator so that the last
664
633
/// and rejected element is still available when **TakeWhileRef** is done.
665
634
///
666
- /// ## Example
667
- ///
668
635
/// ```
669
636
/// use itertools::Itertools;
670
637
///
@@ -705,8 +672,6 @@ pub trait Itertools : Iterator {
705
672
///
706
673
/// Iterator element type is **B**.
707
674
///
708
- /// ## Example
709
- ///
710
675
/// ```
711
676
/// use itertools::Itertools;
712
677
///
@@ -738,8 +703,6 @@ pub trait Itertools : Iterator {
738
703
///
739
704
/// The iterator is not advanced past the first element found.
740
705
///
741
- /// ## Example
742
- ///
743
706
/// ```
744
707
/// use itertools::Itertools;
745
708
///
@@ -764,8 +727,6 @@ pub trait Itertools : Iterator {
764
727
///
765
728
/// Return actual number of elements consumed, until done or reaching the end.
766
729
///
767
- /// ## Example
768
- ///
769
730
/// ```
770
731
/// use itertools::Itertools;
771
732
///
@@ -793,8 +754,6 @@ pub trait Itertools : Iterator {
793
754
/// It works similarly to **.skip(n)** except it is eager and
794
755
/// preserves the iterator type.
795
756
///
796
- /// ## Example
797
- ///
798
757
/// ```
799
758
/// use itertools::Itertools;
800
759
///
@@ -817,8 +776,6 @@ pub trait Itertools : Iterator {
817
776
/// Note: This method is eager, dropping the back elements immediately and
818
777
/// preserves the iterator type.
819
778
///
820
- /// ## Example
821
- ///
822
779
/// ```
823
780
/// use itertools::Itertools;
824
781
///
@@ -837,8 +794,6 @@ pub trait Itertools : Iterator {
837
794
///
838
795
/// Consumes the iterator until its end.
839
796
///
840
- /// ## Example
841
- ///
842
797
/// ```
843
798
/// use std::sync::mpsc::channel;
844
799
/// use itertools::Itertools;
@@ -874,7 +829,6 @@ pub trait Itertools : Iterator {
874
829
///
875
830
/// Return the number of elements written.
876
831
///
877
- /// ## Example
878
832
/// ```
879
833
/// use itertools::Itertools;
880
834
///
@@ -902,8 +856,6 @@ pub trait Itertools : Iterator {
902
856
///
903
857
/// Use the **Display** implementation of each element.
904
858
///
905
- /// ## Example
906
- ///
907
859
/// ```
908
860
/// use itertools::Itertools;
909
861
///
@@ -953,8 +905,6 @@ pub trait Itertools : Iterator {
953
905
/// With a **start** value of 0 and an addition as folding function,
954
906
/// this effetively results in *((0 + 1) + 2) + 3*
955
907
///
956
- /// ## Example
957
- ///
958
908
/// ```
959
909
/// use std::ops::Add;
960
910
/// use itertools::Itertools;
@@ -992,8 +942,6 @@ pub trait Itertools : Iterator {
992
942
/// empty, return **None**. With just one element, return it.
993
943
/// Otherwise elements are accumulated in sequence using the closure **f**.
994
944
///
995
- /// ## Example
996
- ///
997
945
/// ```
998
946
/// use itertools::Itertools;
999
947
///
@@ -1018,8 +966,6 @@ pub trait Itertools : Iterator {
1018
966
/// Return **None** if the size hint does not tell, or return a **Some**
1019
967
/// value with the emptiness if it's possible to tell.
1020
968
///
1021
- /// ## Example
1022
- ///
1023
969
/// ```
1024
970
/// use itertools::Itertools;
1025
971
///
@@ -1051,8 +997,6 @@ impl<T: ?Sized> Itertools for T where T: Iterator { }
1051
997
/// (elements pairwise equal and sequences of the same length),
1052
998
/// **false** otherwise.
1053
999
///
1054
- /// ## Example
1055
- ///
1056
1000
/// ```
1057
1001
/// assert!(itertools::equal(vec![1, 2, 3], 1..4));
1058
1002
/// assert!(!itertools::equal(&[0, 0], &[0, 0, 0]));
@@ -1080,8 +1024,6 @@ pub fn equal<I, J>(a: I, b: J) -> bool where
1080
1024
///
1081
1025
/// Return the index of the split point.
1082
1026
///
1083
- /// ## Example
1084
- ///
1085
1027
/// ```
1086
1028
/// use itertools::partition;
1087
1029
///
0 commit comments