(source: &str)
| 1 | pub fn parse_panim(source: &str) -> Result<AnimationClip, String> { |
| 2 | let mut parser = PanimParser::new(source); |
| 3 | let clip = parser.parse()?; |
| 4 | // Load-time (cold) guard 4 the sampler's binary-search invariant; the |
| 5 | // per-sample path must not re-verify it per frame. |
| 6 | clip.validate_key_order()?; |
| 7 | Ok(clip) |