Trait range::Int

source ·
pub trait Int:
    Copy
    + Add<Self, Output = Self>
    + Sub<Self, Output = Self>
    + Ord {
    // Required methods
    fn zero() -> Self;
    fn one() -> Self;
    fn to_usize(self) -> usize;
}

Required Methods§

source

fn zero() -> Self

source

fn one() -> Self

source

fn to_usize(self) -> usize

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Int for isize

source§

impl Int for usize

Implementors§