1 2 3 4 5 6 7 8 9 10 11 12 13
use core::str::FromStr; use super::Currency; impl TryFrom<&str> for Currency { type Error = <Self as FromStr>::Err; fn try_from(s: &str) -> Result<Self, Self::Error> { s.parse() } }