Function lattices::algebra::integral_domain

source ยท
pub fn integral_domain<S: Debug + PartialEq + Clone, const N: usize>(
    items: &[S; N],
    f: &impl Fn(S, S) -> S,
    g: &impl Fn(S, S) -> S,
    zero: S,
    one: S,
    inverse_f: &impl Fn(S) -> S,
) -> Result<(), &'static str>
Expand description

Defines an integral domain structure.

An integral domain is a nonzero commutative ring with no nonzero zero divisors.