pub trait FancyArithmetic: Fancy {
// Required methods
fn add(&mut self, x: &Self::Item, y: &Self::Item) -> Self::Item;
fn sub(&mut self, x: &Self::Item, y: &Self::Item) -> Self::Item;
fn cmul(&mut self, x: &Self::Item, c: u16) -> Self::Item;
fn mul(
&mut self,
x: &Self::Item,
y: &Self::Item,
channel: &mut Channel<'_>,
) -> Result<Self::Item>;
// Provided method
fn add_many(&mut self, args: &[Self::Item]) -> Self::Item { ... }
}Expand description
Extension trait for Fancy that provides arithmetic operations.