INNER CODE UNIT · Rust

neg

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

  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,
    }
  }
}

impl MulAssign for BinaryField {
  fn mul_assign(&mut self, rhs: Self) { *self = *self * rhs; }
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…