Closed
Description
When TryFrom
is stabilized, it would be really nice if there were an implicit relationship between TryFrom
and FromStr
. For example:
impl<'a, T: TryFrom<&'a str>> FromStr for T {
type Err = T::Error;
fn from_str(value: &'a str) -> Result<T, Self::Err> {
T::try_from(value)
}
}
I think, for stability reasons, that this can only be done before TryFrom
is stabilized.