MCPcopy Create free account
hub / github.com/hashintel/hash / new

Method new

libs/@local/hashql/core/src/module/mod.rs:73–80  ·  view source on GitHub ↗

Creates a new module registry with the standard library pre-loaded. This initializes the registry with all the standard modules and items defined in the standard library.

(env: &Environment<'heap>)

Source from the content-addressed store, hash-verified

71 /// This initializes the registry with all the standard modules and items
72 /// defined in the standard library.
73 pub fn new(env: &Environment<'heap>) -> Self {
74 let this = Self::empty(env.heap);
75
76 let mut std = StandardLibrary::new(env, &this);
77 std.register();
78
79 this
80 }
81
82 /// Interns a new module into the registry.
83 ///

Callers

nothing calls this directly

Calls 2

emptyFunction · 0.50
registerMethod · 0.45

Tested by

no test coverage detected