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

Method import_absolute_static

libs/@local/hashql/core/src/module/namespace.rs:191–211  ·  view source on GitHub ↗
(
        &mut self,
        name: &'static str,
        query: impl IntoIterator<Item = &'static str, IntoIter: Clone>,
    )

Source from the content-addressed store, hash-verified

189 }
190
191 fn import_absolute_static(
192 &mut self,
193 name: &'static str,
194 query: impl IntoIterator<Item = &'static str, IntoIter: Clone>,
195 ) -> bool {
196 let name = self.registry.heap.intern_symbol(name);
197 let query = query
198 .into_iter()
199 .map(|symbol| self.registry.heap.intern_symbol(symbol));
200
201 self.import_absolute(
202 name,
203 query,
204 ImportOptions {
205 glob: false,
206 mode: ResolutionMode::Absolute,
207 suggestions: false,
208 },
209 )
210 .is_ok()
211 }
212
213 /// Resolves a path relative to the current scope.
214 ///

Callers 1

import_preludeMethod · 0.80

Calls 5

is_okMethod · 0.80
import_absoluteMethod · 0.80
intern_symbolMethod · 0.45
mapMethod · 0.45
into_iterMethod · 0.45

Tested by

no test coverage detected