fn usize_from_str<'de, D>(deserializer: D) -> Result<usize, D::Error>
    where D: Deserializer<'de>
{
    let s = String::deserialize(deserializer)?;
    usize::from_str(&s).map_err(de::Error::custom)
}
/// Convert string to usize while deserializing
Convert string to usize while deserializing
Convert string to usize while deserializing
fn usize_from_str<'de, D>(deserializer: D) -> Result<usize, D::Error>
    where D: Deserializer<'de>
{
    let s = String::deserialize(deserializer)?;
    usize::from_str(&s).map_err(de::Error::custom)
}
fn usize_from_str < ' de , D > ( deserializer : D ) -> Result < usize , D :: Error > where D : Deserializer < ' de > { let s = String :: deserialize ( deserializer ) ? ; usize :: from_str ( & s ) . map_err ( de :: Error :: custom ) }
Convert string to usize while deserializing
Convert string to usize while deserializing
deserializer
D
deserializer
D