Trait Integer

Source
pub trait Integer:
    Zero
    + One
    + Eq
    + Div<Output = Self>
    + Sub<Output = Self>
    + Rem<Output = Self>
    + Copy { }
Expand description

A trait for integers.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> Integer for T
where T: Zero + One + Eq + Div<Output = T> + Sub<Output = T> + Rem<Output = T> + Copy,