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

Method new

libs/@local/hashql/core/src/span/mod.rs:313–315  ·  view source on GitHub ↗
(source: SourceId, id: u32)

Source from the content-addressed store, hash-verified

311 pub const SYNTHETIC: Self = Self(u32::MAX);
312
313 pub(crate) const fn new(source: SourceId, id: u32) -> Self {
314 Self((source.value() << Self::SOURCE_OFFSET) | (id & Self::ID_MASK))
315 }
316
317 pub(crate) const fn source_id(self) -> SourceId {
318 SourceId::new_unchecked(self.0 >> Self::SOURCE_OFFSET)

Callers

nothing calls this directly

Calls 1

valueMethod · 0.45

Tested by

no test coverage detected