Skip to main content

Idx

Trait Idx 

pub trait Idx:
    Copy
    + Eq
    + Ord
    + Debug
    + From<u32>
    + Into<u32> {
    // Provided method
    fn to_usize(self) -> usize { ... }
}
Expand description

A trait for u32-backed, 0-based IDs.

Provided Methods§

fn to_usize(self) -> usize

Convert from this ID type to usize.

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§

§

impl Idx for AsmOpId

§

impl Idx for DebugVarId

§

impl Idx for DecoratorId

§

impl Idx for MastNodeId

§

impl Idx for SourceId