diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2016-05-28 17:53:56 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2016-05-28 20:53:26 +0200 |
commit | 57dcd4f99179d28ef0126995f872851e9ac83bdf (patch) | |
tree | e84136ec8f0a10558668c3a27685193b140357cc /libimagtimeui | |
parent | cc448e4754302bc03167d2ec1dabaedc6ea40724 (diff) |
Add Parse trait
Diffstat (limited to 'libimagtimeui')
-rw-r--r-- | libimagtimeui/src/lib.rs | 1 | ||||
-rw-r--r-- | libimagtimeui/src/parse.rs | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/libimagtimeui/src/lib.rs b/libimagtimeui/src/lib.rs index ef2bab0a..cb24a50f 100644 --- a/libimagtimeui/src/lib.rs +++ b/libimagtimeui/src/lib.rs @@ -7,5 +7,6 @@ extern crate regex; pub mod date; pub mod datetime; +pub mod parse; pub mod time; diff --git a/libimagtimeui/src/parse.rs b/libimagtimeui/src/parse.rs new file mode 100644 index 00000000..4b3c18f3 --- /dev/null +++ b/libimagtimeui/src/parse.rs @@ -0,0 +1,6 @@ +pub trait Parse : Sized { + + fn parse(s: &str) -> Option<Self>; + +} + |