default_from_normalized_str

Function default_from_normalized_str 

Source
pub fn default_from_normalized_str<T: FromStr<Err = ParseErrors> + Display>(
    s: &str,
    describe_self: impl FnOnce() -> &'static str,
) -> Result<T, ParseErrors>
Expand description

Default implementation of from_normalized_str(), which may be overridden for particular types if there is a more optimized implementation available.

See comments on FromNormalizedStr::from_normalized_str().