MCPcopy Create free account
hub / github.com/eigenform/perfect / value

Method value

perfect/src/util.rs:475–475  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

473 pub const fn offset_mask(&self) -> usize { self.0 - 1 }
474 pub const fn index_mask(&self) -> usize { !self.offset_mask() }
475 pub const fn value(&self) -> usize { self.0 }
476 pub const fn check(&self, value: usize) -> bool {
477 (value & self.offset_mask()) == 0
478 }

Callers 2

nextMethod · 0.45
prevMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected