Struct wasmparser::BrTable [] [src]

pub struct BrTable<'a> { /* fields omitted */ }

A br_table entries representation.

Methods

impl<'a> BrTable<'a>
[src]

[src]

Reads br_table entries.

Examples

let buf = vec![0x0e, 0x02, 0x01, 0x02, 0x00];
let mut reader = wasmparser::BinaryReader::new(&buf);
let op = reader.read_operator().unwrap();
if let wasmparser::Operator::BrTable { ref table } = op {
    let br_table_depths = table.read_table();
    assert!(br_table_depths.0 == vec![1,2] &&
            br_table_depths.1 == 0);
} else {
    unreachable!();
}

Trait Implementations

impl<'a> Debug for BrTable<'a>
[src]

[src]

Formats the value using the given formatter. Read more

impl<'a> IntoIterator for &'a BrTable<'a>
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

[src]

Creates an iterator from a value. Read more

Auto Trait Implementations

impl<'a> Send for BrTable<'a>

impl<'a> Sync for BrTable<'a>