pub trait BitUnpack<T>: Sized {
// Required method
fn bit_unpack(n: T, bits: u64) -> Self;
}Expand description
Unpacks a polynomial from the fixed-width fields of a single number, reading the coefficient of $x^i$ from bit $ib$; the result $p$ satisfies $p(2^b) = n$.
This inverts BitPack on polynomials whose coefficients fit their fields.
Required Methods§
Sourcefn bit_unpack(n: T, bits: u64) -> Self
fn bit_unpack(n: T, bits: u64) -> Self
Unpacks a polynomial from fields of bits bits.
$$ f(n, b) = p, \quad \text{where} \quad p(2^b) = n. $$
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".