Idx

Trait Idx 

Source
pub trait Idx:
    Copy
    + Debug
    + Display
    + Eq {
    // Required methods
    fn new(index: u32) -> Self;
    fn into_inner(self) -> u32;
}
Expand description

A trait for all index types.

This is used by IdxVec to create and read index types.

Required Methods§

Source

fn new(index: u32) -> Self

Source

fn into_inner(self) -> u32

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.

Implementors§