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

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

An opaque key to uniquely identify a table entry.

Required methods

pub fn new(index: usize) -> Self[src]

Create a new table key from an index.

pub fn invalid() -> Self[src]

Create an invalid table key.

pub fn index(self) -> usize[src]

Return the index wrapped within this table key.

pub fn is_invalid(self) -> bool[src]

Return whether this table key is invalid.

Loading content...

Implementors

impl TableKey for DeclId[src]

impl TableKey for UnitId[src]

impl TableKey for Arg[src]

impl TableKey for Block[src]

impl TableKey for ExtUnit[src]

impl TableKey for Inst[src]

impl TableKey for Value[src]

Loading content...