pub struct JumpTable {
pub branches: Vec<JumpCondition>,
pub default: Vec<WasiInstruction>,
pub return: Vec<WasiType>,
}
Expand description
switch {
when x == 0:
...
when x == 2:
...
else:
...
}
Fields§
§branches: Vec<JumpCondition>
§default: Vec<WasiInstruction>
§return: Vec<WasiType>
Trait Implementations§
source§impl Ord for JumpTable
impl Ord for JumpTable
source§impl PartialEq for JumpTable
impl PartialEq for JumpTable
source§impl PartialOrd for JumpTable
impl PartialOrd for JumpTable
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for JumpTable
impl StructuralPartialEq for JumpTable
Auto Trait Implementations§
impl Freeze for JumpTable
impl RefUnwindSafe for JumpTable
impl Send for JumpTable
impl Sync for JumpTable
impl Unpin for JumpTable
impl UnwindSafe for JumpTable
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
source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.