range

Trait 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

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.

Implementations on Foreign Types§

Source§

impl Int for isize

Source§

impl Int for usize

Implementors§

impl Int for ByteIndex