Splitter
A string and slice splitter library
String Example
use StrSplitter;
let sp = new;
assert_eq!;
Slice Example
use Splitter;
let sp = new;
let re: = vec!;
assert_eq!;
Custom Info
use Range;
use ;
let sp = new.;
assert_eq!;
Derive Example (derive and impls - feature)
use Range;
use ;
let sp = new.;
assert_eq!;
Derive Info
When using the derive macro, and lifetimes are provided, the first lifetime has to be the lifetime of the slice or of the string.
Same with generic type parameters, the first generic type parameter has to be the the type of the slice elements.
Features
std- enables the standard library (currently only used withimpls- feature)impls- automatically implementsInfoandStrInfofor usefull types fromcoreorstdinfos- adds pre-defined usefullInfoandStrInfotypesderive- enables theInfoandStrInfoderive macrofull- enables all features
Automatic Implementations
impls - feature
core::pin::Pincore::marker::PhantomDatacore::marker::PhantomPinnedcore::mem::ManuallyDropcore::cell::Cellcore::cell::RefCellcore::cell::UnsafeCellcore::ops::Rangecore::ops::RangeInclusive
impls and std - feature
std::boxed::Boxstd::rc::Rcstd::sync::Arcstd::sync::Mutexstd::sync::RwLockstd::vec::Vec(only for slices)std::path::PathBuf(only for strings)std::string::String(only for strings)