INNER CODE UNIT · Rust
sub
IronCoreLabs/recrypt-rs · src/internal/mod.rs:171
fn sub(self, other: Self) -> Self {
Self {
value: self.value - other.value,
}
}
}
impl<T> BitRepr for PrivateKey<T>
where
T: BitRepr + Copy,
{
fn to_bits(&self) -> Vec<ConstantBool<LimbType>> {
self.value.to_bits()
}
}
#[derive(Clone, Debug)]
#[cfg_attr(test, derive(PartialEq, Eq))]