1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
//! # Recommend V2 module
//!
//! In v2, no longer needs `Clone` trait
//!
//! And Permutate now allow two params
//!
//! What is more, it use Optional value and any input won't occur error
//!
//! Anyway, old api has not changed, but you are going to use v2 module, just add `v2` in the feature!
//!
//!
//! # Example
//! ```
//!use combination::v2::*;
//!let str_list = ["hi", "i", "am", "roger", "and", "you"];
//!let combine = Combine::new(6, 4);
//!let res = str_list.try_select(&combine).unwrap();
//!for v in res {
//! println!("{:?}", v);
//!}
//!
//! ```
//!
//! As long as use two traits `Select` and `Selector` it will work.
//!
//! V2 module provides two structs which implement `Selector` trait, they are `Combine` and `Permutate`
//!
//! By using them with trait `Select`, type as `&[T], Vec<T>, [T]` will be able to be selected.
//!
pub use AllDislocation;
pub use Combine;
pub use Permutate;
pub use ;