Struct nyar_wasm::EnumerationTable
source · pub struct EnumerationTable {
pub branches: BTreeMap<u32, Vec<Operation>>,
pub default: Vec<Operation>,
pub return: Vec<WasmType>,
}Expand description
match var {
case 0:
...
case 2:
...
else:
...
}
Fields§
§branches: BTreeMap<u32, Vec<Operation>>§default: Vec<Operation>§return: Vec<WasmType>Trait Implementations§
source§impl Clone for EnumerationTable
impl Clone for EnumerationTable
source§fn clone(&self) -> EnumerationTable
fn clone(&self) -> EnumerationTable
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl RefUnwindSafe for EnumerationTable
impl Send for EnumerationTable
impl Sync for EnumerationTable
impl Unpin for EnumerationTable
impl UnwindSafe for EnumerationTable
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more