use core::num::{One, Zero}; /** * Trait of elements of a ring. A rings is an algebraic structure, the * elements of which have all the common numeric operation but the division: * addition, subtraction, multiplication and distinct elements (`One` and * `Zero`) respectively neutral and absorbant wrt the multiplication. */ pub trait Ring : Sub + Add + Neg + Mul + One + Zero { } impl + Add + Neg + Mul + One + Zero> Ring for T;