Trait Index

Source
pub trait Index: Sealed {
    const TYPE: c_int;
}
Expand description

A type that can be used as an index for indexed drawing.

Required Associated Constants§

Source

const TYPE: c_int

The data type of the index, as used by citro3d_sys::C3D_DrawElements’s type_ parameter.

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 TYPE: c_int = 0i32

Source§

impl Index for u16

Source§

const TYPE: c_int = 1i32

Implementors§