pub enum IValue {
Show 17 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>),
}
Expand description

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.

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.