Skip to main content
U4
binius_
field
0.1.0
U4
Aliased Type
Trait Implementations
Underlier
In crate binius_
field
binius_field
Type Alias
U4
Copy item path
Source
pub type U4 = SmallU<4>;
Aliased Type
§
pub struct U4(
/* private fields */
);
Trait Implementations
§
Source
§
impl
Underlier
for
U4
Source
§
const
LOG_BITS
:
usize
Base-2 logarithm of the number of bits in a value.
Source
§
const
ZERO
: Self
Every bit clear.
Source
§
const
ONE
: Self
Bit 0 set, every other bit clear.
Source
§
const
ONES
: Self
Every bit set.
Source
§
fn
interleave
(self, other: Self, log_block_len:
usize
) -> (Self, Self)
Exchanges alternating blocks of two values.
Read more
Source
§
const
BITS
:
usize
= _
Number of bits in a value.
Read more
Source
§
fn
transpose
(self, other: Self, log_block_len:
usize
) -> (Self, Self)
Separates two values into their even and odd blocks.
Read more
Source
§
fn
from_fn
<T>(f: impl
FnMut
(
usize
) -> T) -> Self
where T:
Underlier
, Self:
Divisible
<T>,
Builds a value by filling it with narrower ones, low slot first.
Read more