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

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

An opaque key to uniquely identify a table entry.

Required methods

fn new(index: usize) -> Self

Create a new table key from an index.

fn invalid() -> Self

Create an invalid table key.

fn index(self) -> usize

Return the index wrapped within this table key.

fn is_invalid(self) -> bool

Return whether this table key is invalid.

Loading content...

Implementors

impl TableKey for Arg[src]

impl TableKey for Block[src]

impl TableKey for DeclId[src]

impl TableKey for ExtUnit[src]

impl TableKey for Inst[src]

impl TableKey for UnitId[src]

impl TableKey for Value[src]

Loading content...