1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
use crate::algebra::abstr::Ring;

/// Integer
///
///<a href="https://en.wikipedia.org/wiki/Integer">https://en.wikipedia.org/wiki/Integer</a>
pub trait Integer: Ring
{
}

macro_rules! impl_integer
{
    ($($t:ty),*) =>
    {
    	$(
        impl Integer for $t
        {

        }
        )*
    }
}

impl_integer!(i8, i16, i32, i64, i128);