MCPcopy Create free account
hub / github.com/aiscriptdev/aiscript / register_extra_native_functions

Method register_extra_native_functions

aiscript-vm/src/vm/extra.rs:21–33  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

19 }
20
21 pub fn register_extra_native_functions(&mut self) {
22 self.arena.mutate_root(|_mc, state| {
23 state.define_native_function("response", NativeFn(response::response));
24 state.define_native_function(
25 "temporary_redirect",
26 NativeFn(response::temporary_redirect),
27 );
28 state.define_native_function(
29 "permanent_redirect",
30 NativeFn(response::permanent_redirect),
31 );
32 });
33 }
34
35 pub fn inject_sso_instance<K>(&mut self, fields: HashMap<K, serde_json::Value>)
36 where

Callers 1

pollMethod · 0.80

Calls 3

NativeFnClass · 0.85
mutate_rootMethod · 0.80

Tested by

no test coverage detected