MaxIndex

Trait MaxIndex 

Source
pub trait MaxIndex {
    const MAX: usize;
}
Expand description

Provides the maximum value of an index.

This should be the maximum value representable by the index type up to u32::MAX because the tessellators can’t internally represent more than u32::MAX indices.

Required Associated Constants§

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 MaxIndex for i8

Source§

const MAX: usize = 127usize

Source§

impl MaxIndex for i16

Source§

const MAX: usize = 32_767usize

Source§

impl MaxIndex for i32

Source§

const MAX: usize = 2_147_483_647usize

Source§

impl MaxIndex for i64

Source§

const MAX: usize = 4_294_967_295usize

Source§

impl MaxIndex for isize

Source§

const MAX: usize = 4_294_967_295usize

Source§

impl MaxIndex for u8

Source§

const MAX: usize = 255usize

Source§

impl MaxIndex for u16

Source§

const MAX: usize = 65_535usize

Source§

impl MaxIndex for u32

Source§

const MAX: usize = 4_294_967_295usize

Source§

impl MaxIndex for u64

Source§

const MAX: usize = 4_294_967_295usize

Source§

impl MaxIndex for usize

Source§

const MAX: usize = 4_294_967_295usize

Implementors§