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

Method get_entry

libs/@local/hashql/core/src/span/table.rs:264–271  ·  view source on GitHub ↗
(&self, span: SpanId)

Source from the content-addressed store, hash-verified

262 }
263
264 fn get_entry(&self, span: SpanId) -> Option<&SpanEntry<S>> {
265 if span.source_id() != self.source_id {
266 return None;
267 }
268
269 let index = span.id().as_usize();
270 self.spans.get(index)
271 }
272
273 /// Retrieves span data by ID.
274 ///

Callers 3

getMethod · 0.45
absolute_implMethod · 0.45
ancestorsMethod · 0.45

Calls 4

source_idMethod · 0.80
getMethod · 0.65
as_usizeMethod · 0.45
idMethod · 0.45

Tested by

no test coverage detected