Struct cranelift_codegen::ir::jumptable::JumpTableData[][src]

pub struct JumpTableData { /* fields omitted */ }

Contents of a jump table.

All jump tables use 0-based indexing and are expected to be densely populated. They don't need to be completely populated, though. Individual entries can be missing.

Methods

impl JumpTableData
[src]

Create a new empty jump table.

Create a new empty jump table with the specified capacity.

Get the number of table entries.

Set a table entry.

The table will grow as needed to fit idx.

Append a table entry.

Clear a table entry.

The br_table instruction will fall through if given an index corresponding to a cleared table entry.

Get the entry for idx, or None.

Important traits for Entries<'a>

Enumerate over all (idx, dest) pairs in the table in order.

This returns an iterator that skips any empty slots in the table.

Checks if any of the entries branch to ebb.

Important traits for &'a [u8]

Access the whole table as a mutable slice.

Trait Implementations

impl Clone for JumpTableData
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Display for JumpTableData
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations