Function fea_rs::parse::parse_string

source ·
pub fn parse_string(text: impl Into<Arc<str>>) -> (Node, Vec<Diagnostic>)
Expand description

Convenience method to parse a block of FEA from memory.

This is useful for things like testing or syntax highlighting of a single file, but it cannot handle imports, or handle ambiguous glyph names.

The input text can be any of &str, String, or Arc<str>.