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

Parse the format section from a string.

Errors

LoadError::Format if the string cannot be parsed into a structure containing a valid “format” substructure.