Skip to main content

load_pack

Function load_pack 

Source
pub fn load_pack(json: &Value) -> Result<Vec<Snippet>, LoadError>
Expand description

Parse a friendly-snippets-style JSON pack. Each entry becomes a Snippet; the body is parsed eagerly so the per-keystroke gen:snippet source doesn’t pay re-parse cost.