Struct nyar_wasm::JumpCondition
source · pub struct JumpCondition {
pub condition: Vec<WasiInstruction>,
pub action: Vec<WasiInstruction>,
}
Fields§
§condition: Vec<WasiInstruction>
The condition of the if statement
action: Vec<WasiInstruction>
The action if condition is true
Implementations§
source§impl JumpCondition
impl JumpCondition
pub fn new( condition: Vec<WasiInstruction>, action: Vec<WasiInstruction> ) -> Self
Trait Implementations§
source§impl Clone for JumpCondition
impl Clone for JumpCondition
source§fn clone(&self) -> JumpCondition
fn clone(&self) -> JumpCondition
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 moresource§impl Debug for JumpCondition
impl Debug for JumpCondition
source§impl Hash for JumpCondition
impl Hash for JumpCondition
source§impl Ord for JumpCondition
impl Ord for JumpCondition
source§fn cmp(&self, other: &JumpCondition) -> Ordering
fn cmp(&self, other: &JumpCondition) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for JumpCondition
impl PartialEq for JumpCondition
source§fn eq(&self, other: &JumpCondition) -> bool
fn eq(&self, other: &JumpCondition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for JumpCondition
impl PartialOrd for JumpCondition
source§fn partial_cmp(&self, other: &JumpCondition) -> Option<Ordering>
fn partial_cmp(&self, other: &JumpCondition) -> Option<Ordering>
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 JumpCondition
impl StructuralPartialEq for JumpCondition
Auto Trait Implementations§
impl Freeze for JumpCondition
impl RefUnwindSafe for JumpCondition
impl Send for JumpCondition
impl Sync for JumpCondition
impl Unpin for JumpCondition
impl UnwindSafe for JumpCondition
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.