litepattern
Lightweight pattern matching library for Rust.
# Add to your Cargo.toml file dependencies:
= "0.1.0"
# or: litepattern = { git = "https://github.com/stpettersens/litepattern.git" }
You can use litepattern
as a lighter alternative to the regex crate, if you only need to do simple pattern matching. For example, say you want to pass a simple timestamp such as 2017-01-10T19:10:00
and break it down into is constituent parts:
extern crate litepattern;
use LPattern;