1 2 3 4 5 6 7 8
use super::res::Res; pub trait StrEnum { fn to_str(&self) -> &str; fn from_str(s: &str) -> Res<Self> where Self: Sized; }