Enum fluence_faas::IValue[]

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)

Tuple Fields

0: bool

Boolean value.

S8(i8)

Tuple Fields

0: i8

A 8-bits signed integer.

S16(i16)

Tuple Fields

0: i16

A 16-bits signed integer.

S32(i32)

Tuple Fields

0: i32

A 32-bits signed integer.

S64(i64)

Tuple Fields

0: i64

A 64-bits signed integer.

U8(u8)

Tuple Fields

0: u8

A 8-bits unsigned integer.

U16(u16)

Tuple Fields

0: u16

A 16-bits unsigned integer.

U32(u32)

Tuple Fields

0: u32

A 32-bits unsigned integer.

U64(u64)

Tuple Fields

0: u64

A 64-bits unsigned integer.

F32(f32)

Tuple Fields

0: f32

A 32-bits float.

F64(f64)

Tuple Fields

0: f64

A 64-bits float.

String(String)

Tuple Fields

0: String

A string.

ByteArray(Vec<u8, Global>)

Tuple Fields

0: Vec<u8, Global>

Specialization of array type for byte vector.

Array(Vec<IValue, Global>)

Tuple Fields

A byte array.

I32(i32)

Tuple Fields

0: i32

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

I64(i64)

Tuple Fields

0: i64

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

Record(NEVec<IValue>)

Tuple Fields

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

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

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

Performs the conversion.

Performs the conversion.

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

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

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.