pub enum WastVal {
Show 21 variants
Bool(bool),
U8(u8),
S8(i8),
U16(u16),
S16(i16),
U32(u32),
S32(i32),
U64(u64),
S64(i64),
F32(f32),
F64(f64),
Char(char),
String(String),
List(Vec<WastVal>),
Record(IndexMap<String, WastVal>),
Tuple(Vec<WastVal>),
Variant(String, Option<Box<WastVal>>),
Enum(String),
Option(Option<Box<WastVal>>),
Result(Result<Option<Box<WastVal>>, Option<Box<WastVal>>>),
Flags(Vec<String>),
}
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)
F32(f32)
F64(f64)
Char(char)
String(String)
List(Vec<WastVal>)
Record(IndexMap<String, WastVal>)
Tuple(Vec<WastVal>)
Variant(String, Option<Box<WastVal>>)
Enum(String)
Option(Option<Box<WastVal>>)
Result(Result<Option<Box<WastVal>>, Option<Box<WastVal>>>)
Flags(Vec<String>)
Trait Implementations§
Source§impl TryFrom<WastVal> for WastValWithType
impl TryFrom<WastVal> for WastValWithType
impl Eq for WastVal
Auto Trait Implementations§
impl Freeze for WastVal
impl RefUnwindSafe for WastVal
impl Send for WastVal
impl Sync for WastVal
impl Unpin for WastVal
impl UnwindSafe for WastVal
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more