1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
use crate::algebra::abstr::Ring; /// Integer /// ///<https://en.wikipedia.org/wiki/Integer> pub trait Integer: Ring + Eq {} macro_rules! impl_integer { ($($t:ty),*) => { $( impl Integer for $t { } )* } } impl_integer!(i8, i16, i32, i64, i128);