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

Method get

libs/@local/hashql/core/src/module/locals.rs:84–86  ·  view source on GitHub ↗
(&self, name: Symbol<'heap>)

Source from the content-addressed store, hash-verified

82
83 #[must_use]
84 pub fn get(&self, name: Symbol<'heap>) -> Option<&Local<'heap, T>> {
85 self.lookup.get(&name).map(|&index| &self.storage[index])
86 }
87
88 #[must_use]
89 pub fn names(&self) -> impl IntoIterator<Item = Symbol<'heap>> + Clone + use<'_, 'heap, T> {

Callers

nothing calls this directly

Calls 2

getMethod · 0.65
mapMethod · 0.45

Tested by

no test coverage detected