pub trait FancyBinary: Fancy {
// Required methods
fn xor(&mut self, x: &Self::Item, y: &Self::Item) -> Self::Item;
fn and(
&mut self,
x: &Self::Item,
y: &Self::Item,
channel: &mut Channel<'_>,
) -> Result<Self::Item>;
fn negate(&mut self, x: &Self::Item) -> Self::Item;
// Provided method
fn or(
&mut self,
x: &Self::Item,
y: &Self::Item,
channel: &mut Channel<'_>,
) -> Result<Self::Item> { ... }
}Expand description
Extension trait for Fancy that provides binary operations.