pub trait BinaryFieldExtras: TowerField {
// Required method
fn solve_quadratic(c: Self) -> Option<Self>;
// Provided methods
fn square(&self) -> Self { ... }
fn frobenius(&self, k: u32) -> Self { ... }
fn trace(&self) -> Bit { ... }
}Expand description
Binary-field operations beyond core TowerField:
Frobenius, absolute trace, and the Artin-Schreier
solver underpinning the Cantor/FFT substrate.
Required Methods§
Sourcefn solve_quadratic(c: Self) -> Option<Self>
fn solve_quadratic(c: Self) -> Option<Self>
A root of x^2 + x = c, or None iff
Tr(c) != 0 (then it has no solution).
When solvable, the roots are the result and
result + ONE. The value path is constant-time;
only the Some/None choice reveals Tr(c).
Provided Methods§
fn square(&self) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".