Enum fluence_it_types::IValue[][src]

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>), Array(Vec<IValue>), I32(i32), I64(i64), Record(NEVec<IValue>),
}
Expand description

A WIT value.

Variants

Boolean(bool)

Boolean value.

Tuple Fields of Boolean

0: bool
S8(i8)

A 8-bits signed integer.

Tuple Fields of S8

0: i8
S16(i16)

A 16-bits signed integer.

Tuple Fields of S16

0: i16
S32(i32)

A 32-bits signed integer.

Tuple Fields of S32

0: i32
S64(i64)

A 64-bits signed integer.

Tuple Fields of S64

0: i64
U8(u8)

A 8-bits unsigned integer.

Tuple Fields of U8

0: u8
U16(u16)

A 16-bits unsigned integer.

Tuple Fields of U16

0: u16
U32(u32)

A 32-bits unsigned integer.

Tuple Fields of U32

0: u32
U64(u64)

A 64-bits unsigned integer.

Tuple Fields of U64

0: u64
F32(f32)

A 32-bits float.

Tuple Fields of F32

0: f32
F64(f64)

A 64-bits float.

Tuple Fields of F64

0: f64
String(String)

A string.

Tuple Fields of String

0: String
ByteArray(Vec<u8>)

Specialization of array type for byte vector.

Tuple Fields of ByteArray

0: Vec<u8>
Array(Vec<IValue>)

A byte array.

Tuple Fields of Array

0: Vec<IValue>
I32(i32)

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

Tuple Fields of I32

0: i32
I64(i64)

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

Tuple Fields of I64

0: i64
Record(NEVec<IValue>)

A record.

Tuple Fields of Record

0: NEVec<IValue>

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

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

This method tests for !=.

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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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.