Function typed_format_version::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
'contents: 'data,
E: Error + Send + Sync + 'static,
F: Fn(&'data str) -> Result<FormatOnlyTop, E>,
Expand description
Parse format.version from a string.
Errors
Any error returned by the get_format_from_str()
function.