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