use splitter::StrSplitter;
let sp = StrSplitter::new("bytes example", " ");
assert_eq!(
sp.collect::<Vec<_>>(),
vec!["bytes", " ", "example"],
);
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);
std
- enables the standard library (currently only used withimpls
- feature)impls
- automatically implementsInfo
andStrInfo
for usefull types fromcore
andstd
infos
- adds pre-defined usefullInfo
andStrInfo
typesderive
- enables the [Info
] and [StrInfo
] derive macrofull
- enables all features
core::pin::Pin
core::marker::PhantomData
core::marker::PhantomPinned
core::mem::ManuallyDrop
core::cell::Cell
core::cell::RefCell
core::cell::UnsafeCell
core::ops::Range
core::ops::RangeInclusive
std::boxed::Box
std::rc::Rc
std::sync::Arc
std::sync::Mutex
std::sync::RwLock
std::vec::Vec
(only for slices)std::path::PathBuf
(only for strings)std::string::String
(only for strings)