MCPcopy Index your code
hub / github.com/endbasic/endbasic / new

Method new

core/src/vm/mod.rs:233–235  ·  view source on GitHub ↗

Creates a new VM with the given `upcalls_by_name` as the available built-in callables.

(upcalls_by_name: HashMap<SymbolKey, Rc<dyn Callable>>)

Source from the content-addressed store, hash-verified

231
232 /// Creates a new VM with the given `upcalls_by_name` as the available built-in callables.
233 pub fn new(upcalls_by_name: HashMap<SymbolKey, Rc<dyn Callable>>) -> Self {
234 Self::new_with_limits(upcalls_by_name, Limits::default())
235 }
236
237 /// Creates a new VM with the given `upcalls_by_name` and resource `limits`.
238 pub fn new_with_limits(

Callers

nothing calls this directly

Calls 5

test_buildMethod · 0.80
with_dynamic_syntaxMethod · 0.80
with_syntaxMethod · 0.80
with_return_typeMethod · 0.80
with_asyncMethod · 0.80

Tested by

no test coverage detected