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
//! # Splitter
//!
//! ### A string and slice splitter library
//!
//! ## String Example
//! ```rust
//! use splitter::StrSplitter;
//!
//! let sp = StrSplitter::new("bytes example", " ");
//! assert_eq!(
//! sp.collect::<Vec<_>>(),
//! vec!["bytes", " ", "example"],
//! );
//! ```
//!
//! ## Slice Example
//! ```rust
//! use splitter::Splitter;
//!
//! let sp = Splitter::new(&[1, 2, 3, 3, 4], [[2], [4]]);
//! let re: Vec<&[usize]> = vec![&[1], &[2], &[3, 3], &[4]];
//! assert_eq!(sp.collect::<Vec<_>>(), re);
//! ```
//!
//! ## Look at the examples for more info
//!
//! ## Features
//! - `std` - enables the standard library (currently only used with `impls` - feature)
//! - `impls` - automatically implements `Info` and `StrInfo` for usefull types from `core` and `std`
//! - `infos` - adds pre-defined usefull `Info` and `StrInfo` types
//! - `derive` - enables the [`Info`] and [`StrInfo`] derive macro
//! - `full` - enables all features
//!
pub use ;
pub use *;
pub use crateInfo;
pub use crateSplitter;
pub use ;