Enum fce::IValue[]

pub enum IValue {
Show variants Boolean(bool), S8(i8), S16(i16), S32(i32), S64(i64), U8(u8), U16(u16), U32(u32), U64(u64), F32(f32), F64(f64), String(String), ByteArray(Vec<u8, Global>), Array(Vec<IValue, Global>), I32(i32), I64(i64), Record(NEVec<IValue>),
}

A WIT value.

Variants

Boolean(bool)

Boolean value.

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.

ByteArray(Vec<u8, Global>)

Specialization of array type for byte vector.

Array(Vec<IValue, Global>)

A byte array.

I32(i32)

A 32-bits integer (as defined in WebAssembly core).

I64(i64)

A 64-bits integer (as defined in WebAssembly core).

Record(NEVec<IValue>)

A record.

Trait Implementations

impl Clone for IValue

impl Debug for IValue

impl Default for IValue

impl From<String> for IValue

impl From<Vec<u8, Global>> for IValue

impl From<f32> for IValue

impl From<f64> for IValue

impl From<i16> for IValue

impl From<i32> for IValue

impl From<i64> for IValue

impl From<i8> for IValue

impl From<u16> for IValue

impl From<u32> for IValue

impl From<u64> for IValue

impl From<u8> for IValue

impl PartialEq<IValue> for IValue

impl StructuralPartialEq for IValue

impl TryFrom<IValue> for Vec<u8, Global>

type Error = WasmValueNativeCastError

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for IValue

impl Send for IValue

impl Sync for IValue

impl Unpin for IValue

impl UnwindSafe for IValue

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.