MCPcopy Index your code
hub / github.com/aiscriptdev/aiscript / as_object

Method as_object

aiscript-vm/src/lib.rs:97–102  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

95
96impl ReturnValue {
97 pub fn as_object(&self) -> Option<&HashMap<String, serde_json::Value>> {
98 match self {
99 Self::Object(obj) => Some(obj),
100 _ => None,
101 }
102 }
103}
104
105impl Serialize for ReturnValue {

Callers 2

test_inject_instanceFunction · 0.80
pollMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_inject_instanceFunction · 0.64