1 2 3 4 5 6 7
pub trait Valid { fn valid(&self) -> bool; } pub trait Normalize: Valid { fn normalize(&self) -> Option<String>; }