pub enum WastVal<'a> {
Show 22 variants
Bool(bool),
U8(u8),
S8(i8),
U16(u16),
S16(i16),
U32(u32),
S32(i32),
U64(u64),
S64(i64),
Float32(Float32),
Float64(Float64),
Char(char),
String(&'a str),
List(Vec<WastVal<'a>>),
Record(Vec<(&'a str, WastVal<'a>)>),
Tuple(Vec<WastVal<'a>>),
Variant(&'a str, Option<Box<WastVal<'a>>>),
Enum(&'a str),
Union(u32, Box<WastVal<'a>>),
Option(Option<Box<WastVal<'a>>>),
Result(Result<Option<Box<WastVal<'a>>>, Option<Box<WastVal<'a>>>>),
Flags(Vec<&'a str>),
}
Expand description
Expression that can be used inside of invoke
expressions for core wasm
functions.
Variants
Bool(bool)
U8(u8)
S8(i8)
U16(u16)
S16(i16)
U32(u32)
S32(i32)
U64(u64)
S64(i64)
Float32(Float32)
Float64(Float64)
Char(char)
String(&'a str)
List(Vec<WastVal<'a>>)
Record(Vec<(&'a str, WastVal<'a>)>)
Tuple(Vec<WastVal<'a>>)
Variant(&'a str, Option<Box<WastVal<'a>>>)
Enum(&'a str)
Union(u32, Box<WastVal<'a>>)
Option(Option<Box<WastVal<'a>>>)
Result(Result<Option<Box<WastVal<'a>>>, Option<Box<WastVal<'a>>>>)
Flags(Vec<&'a str>)
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for WastVal<'a>
impl<'a> Send for WastVal<'a>
impl<'a> Sync for WastVal<'a>
impl<'a> Unpin for WastVal<'a>
impl<'a> UnwindSafe for WastVal<'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