Crate restructure [−] [src]
restructure crate provides functionalities to match regexp patterns
into struct fields. This crate only builds on rust-nightly as of now.
To use this, add the following to your
[dependencies] restructure = "0.1.1"
and add this to your crate root:
#![feature(cell_extras)] extern crate regex;
Create a struct with regex patterns and implements RegexStruct trait on it.
This trait allows you to match struct fields with regexp