pub enum IType {
Show 17 variants Boolean, S8, S16, S32, S64, U8, U16, U32, U64, F32, F64, String, ByteArray, Array(Box<IType, Global>), I32, I64, Record(u64),
}
Expand description

Represents the types supported by WIT.

Variants

Boolean

Boolean.

S8

A 8-bits signed integer.

S16

A 16-bits signed integer.

S32

A 32-bits signed integer.

S64

A 64-bits signed integer.

U8

A 8-bits unsigned integer.

U16

A 16-bits unsigned integer.

U32

A 32-bits unsigned integer.

U64

A 64-bits unsigned integer.

F32

A 32-bits float.

F64

A 64-bits float.

String

A string.

ByteArray

Specialization of arrays for byte vector.

Array(Box<IType, Global>)

An array of values of the same type.

I32

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

I64

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

Record(u64)

A record contains record index from interfaces AST.

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
Deserialize this value from the given Serde deserializer. Read more
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
Attempts to parse Self from parser, returning an error if it could not be parsed. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more

Encode an IType into bytes.

Converts the given value into &[u8] in the given writer.

Encode an IType into a string.

Converts the given value to a String. Read more

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
Compare self to key and return true if they are equal.

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.