Trait lyon_tessellation::geometry_builder::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§

Object Safety§

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§