INNER CODE UNIT · Rust
pow
pluto/ronkathon · src/algebra/field/binary_towers/mod.rs:39
fn pow(self, _: usize) -> Self { self }
}
impl FiniteField for BinaryField {
const PRIMITIVE_ELEMENT: Self = Self::ONE;
}
impl From<usize> for BinaryField {
fn from(value: usize) -> Self {
match value {
0 => BinaryField::Zero,
1 => BinaryField::One,
_ => panic!("Invalid `usize` value. Must be 0 or 1."),
}
}
}
impl Add for BinaryField {