pub enum InterfaceValue {
}Expand description
A WIT value.
Variants§
S8(i8)
A 8-bits signed integer.
S16(i16)
A 16-bits signed integer.
S32(i32)
A 32-bits signed integer.
S64(i64)
A 64-bits signed integer.
U8(u8)
A 8-bits unsigned integer.
U16(u16)
A 16-bits unsigned integer.
U32(u32)
A 32-bits unsigned integer.
U64(u64)
A 64-bits unsigned integer.
F32(f32)
A 32-bits float.
F64(f64)
A 64-bits float.
String(String)
A string.
I32(i32)
A 32-bits integer (as defined in WebAssembly core).
I64(i64)
A 64-bits integer (as defiend in WebAssembly core).
Record(Vec1<InterfaceValue>)
A record.
Trait Implementations§
Source§impl Clone for InterfaceValue
impl Clone for InterfaceValue
Source§fn clone(&self) -> InterfaceValue
fn clone(&self) -> InterfaceValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InterfaceValue
impl Debug for InterfaceValue
Source§impl Default for InterfaceValue
impl Default for InterfaceValue
Source§impl From<&InterfaceValue> for InterfaceType
impl From<&InterfaceValue> for InterfaceType
Source§fn from(value: &InterfaceValue) -> Self
fn from(value: &InterfaceValue) -> Self
Converts to this type from the input type.
Source§impl From<String> for InterfaceValue
impl From<String> for InterfaceValue
Source§impl From<f32> for InterfaceValue
impl From<f32> for InterfaceValue
Source§impl From<f64> for InterfaceValue
impl From<f64> for InterfaceValue
Source§impl From<i16> for InterfaceValue
impl From<i16> for InterfaceValue
Source§impl From<i32> for InterfaceValue
impl From<i32> for InterfaceValue
Source§impl From<i64> for InterfaceValue
impl From<i64> for InterfaceValue
Source§impl From<i8> for InterfaceValue
impl From<i8> for InterfaceValue
Source§impl From<u16> for InterfaceValue
impl From<u16> for InterfaceValue
Source§impl From<u32> for InterfaceValue
impl From<u32> for InterfaceValue
Source§impl From<u64> for InterfaceValue
impl From<u64> for InterfaceValue
Source§impl From<u8> for InterfaceValue
impl From<u8> for InterfaceValue
Source§impl PartialEq for InterfaceValue
impl PartialEq for InterfaceValue
Source§impl TryFrom<&InterfaceValue> for String
impl TryFrom<&InterfaceValue> for String
Source§type Error = WasmValueNativeCastError
type Error = WasmValueNativeCastError
The type returned in the event of a conversion error.
Source§impl TryFrom<&InterfaceValue> for f32
impl TryFrom<&InterfaceValue> for f32
Source§type Error = WasmValueNativeCastError
type Error = WasmValueNativeCastError
The type returned in the event of a conversion error.
Source§impl TryFrom<&InterfaceValue> for f64
impl TryFrom<&InterfaceValue> for f64
Source§type Error = WasmValueNativeCastError
type Error = WasmValueNativeCastError
The type returned in the event of a conversion error.
Source§impl TryFrom<&InterfaceValue> for i16
impl TryFrom<&InterfaceValue> for i16
Source§type Error = WasmValueNativeCastError
type Error = WasmValueNativeCastError
The type returned in the event of a conversion error.
Source§impl TryFrom<&InterfaceValue> for i32
impl TryFrom<&InterfaceValue> for i32
Source§type Error = WasmValueNativeCastError
type Error = WasmValueNativeCastError
The type returned in the event of a conversion error.
Source§impl TryFrom<&InterfaceValue> for i64
impl TryFrom<&InterfaceValue> for i64
Source§type Error = WasmValueNativeCastError
type Error = WasmValueNativeCastError
The type returned in the event of a conversion error.
Source§impl TryFrom<&InterfaceValue> for i8
impl TryFrom<&InterfaceValue> for i8
Source§type Error = WasmValueNativeCastError
type Error = WasmValueNativeCastError
The type returned in the event of a conversion error.
Source§impl TryFrom<&InterfaceValue> for u16
impl TryFrom<&InterfaceValue> for u16
Source§type Error = WasmValueNativeCastError
type Error = WasmValueNativeCastError
The type returned in the event of a conversion error.
Source§impl TryFrom<&InterfaceValue> for u32
impl TryFrom<&InterfaceValue> for u32
Source§type Error = WasmValueNativeCastError
type Error = WasmValueNativeCastError
The type returned in the event of a conversion error.
Source§impl TryFrom<&InterfaceValue> for u64
impl TryFrom<&InterfaceValue> for u64
Source§type Error = WasmValueNativeCastError
type Error = WasmValueNativeCastError
The type returned in the event of a conversion error.
Source§impl TryFrom<&InterfaceValue> for u8
impl TryFrom<&InterfaceValue> for u8
Source§type Error = WasmValueNativeCastError
type Error = WasmValueNativeCastError
The type returned in the event of a conversion error.
impl StructuralPartialEq for InterfaceValue
Auto Trait Implementations§
impl Freeze for InterfaceValue
impl RefUnwindSafe for InterfaceValue
impl Send for InterfaceValue
impl Sync for InterfaceValue
impl Unpin for InterfaceValue
impl UnwindSafe for InterfaceValue
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