Skip to content

Commit 5c16856

Browse files
committed
Fix non-x86 builds
1 parent 357e052 commit 5c16856

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/block/default.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,16 @@ impl Block {
1111
pub const ALL: Self = Block(!0);
1212
pub const BITS: usize = core::mem::size_of::<Self>() * 8;
1313

14+
#[inline]
15+
pub fn into_usize_array(self) -> [usize; Self::USIZE_COUNT] {
16+
[self.0]
17+
}
18+
19+
#[inline]
20+
pub const fn from_usize_array(array: [usize; Self::USIZE_COUNT]) -> Self {
21+
Self(array[0])
22+
}
23+
1424
#[inline]
1525
pub const fn is_empty(self) -> bool {
1626
self.0 == Self::NONE.0

0 commit comments

Comments
 (0)