parse_scalar

Function parse_scalar 

Source
pub fn parse_scalar<T: FromStr>(
    key: &'static str,
    raw: String,
) -> Result<T, CfgError>
where <T as FromStr>::Err: Error + Send + Sync + 'static,
Expand description

Utility function for macros: parse string to T