parse_items

Function parse_items 

Source
pub fn parse_items(source: &str) -> Result<Vec<ItemAst>, AstError>
Expand description

Parse only items from a source (helper/testing). Parse only item definitions from the given source.

ยงErrors

Returns an error if the source cannot be parsed into items.