Skip to main content

parse_animations

Function parse_animations 

Source
pub fn parse_animations(
    file: &str,
    text: &str,
) -> (Vec<(String, CellAnimation)>, Vec<Diagnostic>)
Expand description

Reads a file holding only [animations.<name>] tables, such as the animations an application or a tool saved. Returns the usable animations in file order and every problem found; a broken animation is skipped, a file that is not TOML yields no animations.