pub enum ValidationStackEntry {
Val(ValType),
Bottom,
}
Expand description
corresponds to opdtype
https://webassembly.github.io/spec/core/valid/instructions.html#instructions
Variants§
Implementations§
Source§impl ValidationStackEntry
impl ValidationStackEntry
Sourcefn unifies_to(&self, other: &ValidationStackEntry) -> bool
fn unifies_to(&self, other: &ValidationStackEntry) -> bool
corresponds to whether (self, other)
is a member of “matches” (<=) relation defined in https://webassembly.github.io/spec/core/valid/instructions.html#instructions
Sourcefn unify(&self, other: &ValidationStackEntry) -> Option<Self>
fn unify(&self, other: &ValidationStackEntry) -> Option<Self>
convenience method that returns Some(other)
if self.unifies_to(other)
is true and None
otherwise
Trait Implementations§
Source§impl Clone for ValidationStackEntry
impl Clone for ValidationStackEntry
Source§fn clone(&self) -> ValidationStackEntry
fn clone(&self) -> ValidationStackEntry
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 ValidationStackEntry
impl Debug for ValidationStackEntry
Source§impl PartialEq for ValidationStackEntry
impl PartialEq for ValidationStackEntry
impl Eq for ValidationStackEntry
impl StructuralPartialEq for ValidationStackEntry
Auto Trait Implementations§
impl Freeze for ValidationStackEntry
impl RefUnwindSafe for ValidationStackEntry
impl Send for ValidationStackEntry
impl Sync for ValidationStackEntry
impl Unpin for ValidationStackEntry
impl UnwindSafe for ValidationStackEntry
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