Skip to main content

Idx

Trait Idx 

Source
pub trait Idx: Copy {
    // Required methods
    fn new(index: usize) -> Self;
    fn index(self) -> usize;
}
Expand description

An arena index.

Required Methods§

Source

fn new(index: usize) -> Self

The id of the index-th node.

Source

fn index(self) -> usize

The position this id stands for.

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§