Skip to main content

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 - 1 because the tessellators can’t internally represent more than u32::MAX - 1 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§

impl MaxIndex for i16

Source§

impl MaxIndex for i32

Source§

impl MaxIndex for i64

Source§

const MAX: usize = <u32 as MaxIndex>::MAX

Source§

impl MaxIndex for isize

Source§

const MAX: usize = <i64 as MaxIndex>::MAX

Source§

impl MaxIndex for u8

Source§

impl MaxIndex for u16

Source§

impl MaxIndex for u32

Source§

impl MaxIndex for u64

Source§

const MAX: usize = <u32 as MaxIndex>::MAX

Source§

impl MaxIndex for usize

Source§

const MAX: usize = <u64 as MaxIndex>::MAX

Implementors§