pub struct BrTable<'a> { /* fields omitted */ }
A br_table entries representation.
Returns the number of br_table
entries, not including the default
label
Reads br_table entries.
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().unwrap();
assert!(br_table_depths.0 == vec![1,2].into_boxed_slice() &&
br_table_depths.1 == 0);
} else {
unreachable!();
}
The type of the elements being iterated over.
type IntoIter = BrTableIterator<'a>
Which kind of iterator are we turning this into?
Formats the value using the given formatter. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static