1 2 3 4 5 6 7
pub trait Parsable where Self: Sized, { fn from_str(text: &str) -> Result<Self, String>; fn to_hhmm(&self) -> String; }