Trait llhd::table::TableKey[][src]

pub trait TableKey: Copy {
    fn new(index: usize) -> Self;
fn invalid() -> Self;
fn index(self) -> usize;
fn is_invalid(self) -> bool; }
Expand description

An opaque key to uniquely identify a table entry.

Required methods

Create a new table key from an index.

Create an invalid table key.

Return the index wrapped within this table key.

Return whether this table key is invalid.

Implementors