INNER CODE UNIT · Rust

sub_assign

pluto/ronkathon · src/algebra/field/binary_towers/mod.rs:93

  fn sub_assign(&mut self, rhs: Self) { *self = *self - rhs; }
}

impl Neg for BinaryField {
  type Output = Self;

  fn neg(self) -> Self::Output { self }
}

impl Mul for BinaryField {
  type Output = Self;

  #[allow(clippy::suspicious_arithmetic_impl)]
  fn mul(self, rhs: Self) -> Self::Output {
    match (self, rhs) {
      (Self::One, Self::One) => Self::ONE,
      _ => Self::ZERO,
    }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…