pub fn import_grammar_lossless(
source: &str,
format: &str,
) -> Result<(Grammar, GrammarLayout), GrammarLosslessError>Expand description
Imports source of format with the layout that reconstructs it.
§Errors
Returns GrammarLosslessError::UnsupportedFormat for a format outside
GRAMMAR_LOSSLESS_FORMATS and the importer’s error for a malformed
source.