Skip to main content

Id

Trait Id 

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

An index into one of a chunk’s tables (or, for ChunkId, the realm’s).

Required Methods§

Source

fn index(self) -> usize

The position in the table.

Source

fn at(index: usize) -> Self

The id of position index.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§