INNER CODE UNIT · Rust
sub
pluto/ronkathon · src/algebra/field/binary_towers/mod.rs:83
fn sub(self, rhs: Self) -> Self::Output {
if self == rhs {
Self::ZERO
} else {
Self::ONE
}
}
}
impl SubAssign for BinaryField {
fn sub_assign(&mut self, rhs: Self) { *self = *self - rhs; }
}
impl Neg for BinaryField {
type Output = Self;
fn neg(self) -> Self::Output { self }
}