Add Parse trait

This commit is contained in:
Matthias Beyer 2016-05-28 17:53:56 +02:00
parent cc448e4754
commit 57dcd4f991
2 changed files with 7 additions and 0 deletions

View file

@ -7,5 +7,6 @@ extern crate regex;
pub mod date;
pub mod datetime;
pub mod parse;
pub mod time;

View file

@ -0,0 +1,6 @@
pub trait Parse : Sized {
fn parse(s: &str) -> Option<Self>;
}