Index

Trait Index 

Source
pub trait Index: Ord + Copy {
    const ZERO: Self;

    // Required method
    fn next(self) -> Self;
}

Required Associated Constants§

Source

const ZERO: Self

Required Methods§

Source

fn next(self) -> Self

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 Index for u8

Source§

const ZERO: u8 = 0u8

Source§

fn next(self) -> u8

Source§

impl Index for u16

Source§

const ZERO: u16 = 0u16

Source§

fn next(self) -> u16

Source§

impl Index for u32

Source§

const ZERO: u32 = 0u32

Source§

fn next(self) -> u32

Source§

impl Index for u64

Source§

const ZERO: u64 = 0u64

Source§

fn next(self) -> u64

Source§

impl Index for usize

Source§

const ZERO: usize = 0usize

Source§

fn next(self) -> usize

Implementors§