aboutsummaryrefslogtreecommitdiff
path: root/src/utils.rs
blob: c53e56444ed9f9c3a4c9059fd11bf4813424d69d (plain)
1
2
3
4
5
6
pub trait FromStaticStr {
    type Err;
    fn from_str(s: &'static str) -> Result<Self, Self::Err>
    where
        Self: Sized;
}