Skip to main content

parse_schema_definitions

Function parse_schema_definitions 

Source
pub fn parse_schema_definitions<'a, T>(
    s: &'a str,
) -> impl Iterator<Item = Result<Definition<'a, T>, ParseError>>
where T: Text<'a>,
Expand description

Parses a schema one definition at a time. The caller decides what to keep, so a huge schema can be processed without the AST of the whole document in memory at once.