MCPcopy Create free account
hub / github.com/Lymia/enumset / ArrayRepr

Class ArrayRepr

enumset/src/repr/array.rs:9–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7/// `N` **must** not be `0`, or else everything will break.
8#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Debug, Hash)]
9pub struct ArrayRepr<const N: usize>(pub [u64; N]);
10impl<const N: usize> ArrayRepr<N> {
11 fn split_bit(bit: u32) -> (usize, u32) {
12 (bit as usize / 64, bit % 64)

Callers 3

array.rsFile · 0.85
from_u64_arrayMethod · 0.85
from_u64_sliceMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected