Skip to main content

is_ring

Function is_ring 

pub fn is_ring<T, Add, Mul>(elements: &[T], add: Add, multiply: Mul) -> bool
where T: Copy + PartialEq, Add: Fn(T, T) -> T + Copy, Mul: Fn(T, T) -> T + Copy,
Expand description

Returns whether elements with add and multiply form a ring.