lib.rs
Contains an unbounded block loopSource references XOR syntax
SHA-2562480a8b35ff9bff8a53092d83eb034b336f4e133c87ed10a4b4222693509c1e3
MaleculeO(As)H(Db₂)Md(In)
Evidence
9:6… tertools — extra iterator adaptors, functions and macros.
10//!
11//! To use the iterator methods in this crate, import the [`Itertools` trait](./trait.Itertools.html):
12//!
13//! ```ignore
14//! use iterto …
35:15… ording to those terms.
36//!
37//!
38
39use std::iter::{self, IntoIterator};
40use std::fmt::Write;
41use std::cmp::Ordering;
42use std::fmt;
43use std::hash::Hash;
44
45pub use adaptors::{
46 Interleave,
47 InterleaveShortest,
48 Product,
49 PutBack,
50 PutBackN,
51 FnMap,
52 Batching,
53 GroupBy,
54 Step,
55 Merge,
56 MultiPeek,
57 TakeWhileRef,
58 WhileSome,
59 Coalesce,
60 CoalesceFn,
61 Combinations,
62 Unique,
63 UniqueBy,
64};
65#[cfg(feature = "unstable")]
66pub use adaptors::EnumerateFrom;
67pub use format::Format;
68pub use groupbylazy::{ChunksLazy, Chunk, Chunks, GroupByLazy, Group, Groups};
69pub use intersperse::Intersperse;
70pub use islice::{ISlice};
71pub use pad_tail::PadUsing;
72pub use repeatn::RepeatN;
73pub use rciter::RcIter;
74pub use stride::Stride;
75pub use stride::StrideMut;
76pub use tee::Tee;
77pub use times::Times;
78pub use times::times;
79pub use linspace::{linspace, Linspace};
80pub use sources::{
81 RepeatCall,
82 Unfold,
170/// for (i, a, b) in izip!(0..100, &mut xs, &ys) {
171/// *a = i ^ *b;
172/// }
173///
⋯6 lines
793:10… se itertools::Itertools;
794 ///
795 /// let mut hexadecimals = "0123456789abcdef".chars();
796 ///
797 /// let decimals = hexadecimals.take_while_ref(|c| c.is_numeric())
798 /// .collect::<String>();
799 /// assert_eq!(decimals, "0123456789");
800 /// assert_eq!(hexadecimals.next() …
1271 let mut ia = a.into_iter();
1272 let mut ib = b.into_iter();
1273 loop {
1274 match ia.next() {
1275 Some(ref x) => match ib.next() {
1276 Some(ref y) => if x != y { return false; …