Struct cretonne_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]

[src]

Create a new empty jump table.

[src]

Create a new empty jump table with the specified capacity.

[src]

Get the number of table entries.

[src]

Set a table entry.

The table will grow as needed to fit idx.

[src]

Append a table entry.

[src]

Clear a table entry.

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

[src]

Get the entry for idx, or None.

Important traits for Entries<'a>
[src]

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

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

[src]

Checks if any of the entries branch to ebb.

Important traits for &'a [u8]
[src]

Access the whole table as a mutable slice.

Trait Implementations

impl Clone for JumpTableData
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Display for JumpTableData
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for JumpTableData

impl Sync for JumpTableData