Skip to main content

parse_with

Function parse_with 

Source
pub fn parse_with(
    v: &Value,
    refs: Option<&mut NameRefs<'_>>,
) -> Result<Vec<Keyframe>, String>
Expand description

parse with a token lookup: a $name in a stop’s width, height, bg or radius resolves through refs, and one that misses leaves that slot unnamed and is remembered on the refs for the binding to raise. Without refs a $name is an error, since there is nothing to resolve it against.