Add Parse trait
This commit is contained in:
parent
cc448e4754
commit
57dcd4f991
2 changed files with 7 additions and 0 deletions
|
@ -7,5 +7,6 @@ extern crate regex;
|
|||
|
||||
pub mod date;
|
||||
pub mod datetime;
|
||||
pub mod parse;
|
||||
pub mod time;
|
||||
|
||||
|
|
6
libimagtimeui/src/parse.rs
Normal file
6
libimagtimeui/src/parse.rs
Normal file
|
@ -0,0 +1,6 @@
|
|||
pub trait Parse : Sized {
|
||||
|
||||
fn parse(s: &str) -> Option<Self>;
|
||||
|
||||
}
|
||||
|
Loading…
Reference in a new issue