MCPcopy Create free account
hub / github.com/PerroEngine/Perro / as_object

Function as_object

perro_source/core/perro_animation/src/panim/syntax.rs:14–19  ·  view source on GitHub ↗
(value: &SceneValue)

Source from the content-addressed store, hash-verified

12}
13
14fn as_object(value: &SceneValue) -> Option<&[SceneObjectField]> {
15 match value {
16 SceneValue::Object(fields) => Some(fields.as_ref()),
17 _ => None,
18 }
19}
20
21fn parse_frame_header(line: &str) -> Option<(u32, AnimationKeyMode)> {
22 let inner = line.strip_prefix("[Frame")?.strip_suffix(']')?;

Callers 3

parse_emit_signalFunction · 0.85
parse_set_varFunction · 0.85
parse_call_methodFunction · 0.85

Calls 1

as_refMethod · 0.45

Tested by

no test coverage detected