Skip to main content

fluent_iterable/
lib.rs

1//! Crate documentation lives in README.md — one source of truth for
2//! crates.io, docs.rs and this page.
3#![doc = include_str!("../README.md")]
4
5use std::cmp::Ordering;
6use std::collections::{HashMap, HashSet};
7use std::fmt::Display;
8use std::hash::Hash;
9
10pub mod ops;
11
12pub use ops::combining::Combine;
13pub use ops::distinct::{Distinct, DistinctBy};
14use ops::fallback::WhenEmptyPhase;
15pub use ops::fallback::{Repeat, WhenEmpty};
16
17include!("fluent_iter.rs");
18
19impl<I: Iterator> FluentIter for I {}
20
21#[cfg(test)]
22mod tests {
23    use super::*;
24
25    include!("tests_src/support.rs");
26
27    include!("tests_src/grouping.rs");
28    include!("tests_src/combining.rs");
29    include!("tests_src/distinct.rs");
30    include!("tests_src/fallback.rs");
31    include!("tests_src/sorting.rs");
32    include!("tests_src/statistics.rs");
33    include!("tests_src/strings.rs");
34    include!("tests_src/cardinality.rs");
35    include!("tests_src/folds.rs");
36    include!("tests_src/integration.rs");
37}