Enum wast::core::WastRetCore
source · [−]pub enum WastRetCore<'a> {
I32(i32),
I64(i64),
F32(NanPattern<Float32>),
F64(NanPattern<Float64>),
V128(V128Pattern),
RefNull(Option<HeapType<'a>>),
RefExtern(u32),
RefFunc(Option<Index<'a>>),
Either(Vec<WastRetCore<'a>>),
}
Expand description
Expressions that can be used inside of assert_return
to validate the
return value of a core wasm function.
Variants
I32(i32)
I64(i64)
F32(NanPattern<Float32>)
F64(NanPattern<Float64>)
V128(V128Pattern)
RefNull(Option<HeapType<'a>>)
A null reference is expected, optionally with a specified type.
RefExtern(u32)
A non-null externref is expected which should contain the specified value.
RefFunc(Option<Index<'a>>)
A non-null funcref is expected.
Either(Vec<WastRetCore<'a>>)
Trait Implementations
sourceimpl<'a> Debug for WastRetCore<'a>
impl<'a> Debug for WastRetCore<'a>
sourceimpl<'a> Parse<'a> for WastRetCore<'a>
impl<'a> Parse<'a> for WastRetCore<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for WastRetCore<'a>
impl<'a> Send for WastRetCore<'a>
impl<'a> Sync for WastRetCore<'a>
impl<'a> Unpin for WastRetCore<'a>
impl<'a> UnwindSafe for WastRetCore<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more