pub enum WasiValue {
Boolean(bool),
Integer8(i8),
Integer16(i16),
Integer32(i32),
Integer64(i64),
Unsigned8(u8),
Unsigned16(u16),
Unsigned32(u32),
Unsigned64(u64),
Float32(f32),
Float64(f64),
DynamicArray(ArrayValue),
}
Expand description
Static values that can be expressed in wasm/wasi
Variants§
Boolean(bool)
The boolean value, true
or false
Integer8(i8)
The signed 8-bit integer, from -128
to 127
Integer16(i16)
The signed 16-bit integer, from -32768
to 32767
Integer32(i32)
The signed 32-bit integer, from -2147483648
to 2147483647
Integer64(i64)
The signed 64-bit integer, from -9223372036854775808
to 9223372036854775807
Unsigned8(u8)
The unsigned 8-bit integer, from 0
to 255
Unsigned16(u16)
The unsigned 16-bit integer, from 0
to 65535
Unsigned32(u32)
The unsigned 32-bit integer, from 0
to 4294967295
Unsigned64(u64)
The unsigned 64-bit integer, from 0
to 18446744073709551615
Float32(f32)
The 32-bit floating point number
Float64(f64)
The 64-bit floating point number
DynamicArray(ArrayValue)
Trait Implementations§
source§impl Ord for WasiValue
impl Ord for WasiValue
source§impl PartialEq for WasiValue
impl PartialEq for WasiValue
source§impl PartialOrd for WasiValue
impl PartialOrd for WasiValue
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl ToWasiType for WasiValue
impl ToWasiType for WasiValue
fn to_wasi_type(&self) -> WasiType
impl Eq for WasiValue
Auto Trait Implementations§
impl Freeze for WasiValue
impl RefUnwindSafe for WasiValue
impl Send for WasiValue
impl Sync for WasiValue
impl Unpin for WasiValue
impl UnwindSafe for WasiValue
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.