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

Function as_text

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

Source from the content-addressed store, hash-verified

4}
5
6fn as_text(value: &SceneValue) -> Option<&str> {
7 match value {
8 SceneValue::Str(v) => Some(v.as_ref()),
9 SceneValue::Key(v) => Some(v.as_ref()),
10 _ => None,
11 }
12}
13
14fn as_object(value: &SceneValue) -> Option<&[SceneObjectField]> {
15 match value {

Callers 7

parse_emit_signalFunction · 0.85
parse_set_varFunction · 0.85
parse_call_methodFunction · 0.85
parse_ease_valueFunction · 0.85
parse_animation_blockMethod · 0.85
parse_objects_blockMethod · 0.85

Calls 1

as_refMethod · 0.45

Tested by

no test coverage detected