Function get_version_from_str

Source
pub fn get_version_from_str<'contents, 'data, E, F>(
    contents: &'contents str,
    from_str_fn: F,
) -> Result<Version, LoadError>
where E: Error + Send + Sync + 'static, F: Fn(&'data str) -> Result<FormatOnlyTop, E>, 'contents: 'data,
Expand description

Parse format.version from a string.

ยงErrors

Any error returned by the get_format_from_str() function.