1 2 3 4 5 6 7 8 9 10 11 12 13
use crate::Bit;
impl PartialEq for Bit {
fn eq(&self, other: &Self) -> bool {
match (self, other) {
(Bit::Zero, Bit::Zero) => true,
(Bit::One, Bit::One) => true,
_ => false
}
}
}
impl Eq for Bit {}