1 2 3 4 5 6 7 8 9 10 11 12 13 14
use std::str; use crate::Masked; impl<T> str::FromStr for Masked<T> where T: str::FromStr, { type Err = T::Err; fn from_str(s: &str) -> Result<Self, Self::Err> { T::from_str(s).map(Self) } }