pub enum WastRetCore<'a> {
Show 16 variants
I32(i32),
I64(i64),
F32(NanPattern<F32>),
F64(NanPattern<F64>),
V128(V128Pattern),
RefNull(Option<HeapType<'a>>),
RefExtern(Option<u32>),
RefHost(u32),
RefFunc(Option<Index<'a>>),
RefAny,
RefEq,
RefArray,
RefStruct,
RefI31,
RefI31Shared,
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<F32>)
F64(NanPattern<F64>)
V128(V128Pattern)
RefNull(Option<HeapType<'a>>)
A null reference is expected, optionally with a specified type.
RefExtern(Option<u32>)
A non-null externref is expected which should contain the specified value.
RefHost(u32)
A non-null anyref is expected which should contain the specified host value.
RefFunc(Option<Index<'a>>)
A non-null funcref is expected.
RefAny
A non-null anyref is expected.
RefEq
A non-null eqref is expected.
RefArray
A non-null arrayref is expected.
RefStruct
A non-null structref is expected.
RefI31
A non-null i31ref is expected.
A non-null, shared i31ref is expected.
Either(Vec<WastRetCore<'a>>)
Trait Implementations§
Source§impl<'a> Debug for WastRetCore<'a>
impl<'a> Debug for WastRetCore<'a>
Source§impl<'a> Parse<'a> for WastRetCore<'a>
impl<'a> Parse<'a> for WastRetCore<'a>
Auto Trait Implementations§
impl<'a> Freeze for WastRetCore<'a>
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§
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