joka.wit

The wit module provides types used in WIT files. Since they are often similar to equivalent Rust types, they may also be useful when interacting with Rust code.

Types 22

aliasWitBool = bool

The WIT bool type.

aliasWitU8 = ubyte

The WIT u8 type.

aliasWitU16 = ushort

The WIT u16 type.

aliasWitU32 = uint

The WIT u32 type.

aliasWitU64 = ulong

The WIT u64 type.

aliasWitS8 = byte

The WIT s8 type.

aliasWitS16 = short

The WIT s16 type.

aliasWitS32 = int

The WIT s32 type.

aliasWitS64 = long

The WIT s64 type.

aliasWitF32 = float

The WIT f32 type.

aliasWitF64 = double

The WIT f64 type.

aliasWitChar = dchar

The WIT char type.

aliasWitCharU8 = char

A helper to avoid using WitU8 for strings.

aliasWitSize = Sz

A helper to change the type used for sizes.

aliasWitString = WitList!(const(WitCharU8))

The WIT string type.

Can be used with WitResult.

The WIT list type.

The WIT option type.

aliastoWit = toForeign

Converts a value to its WIT representation.

The WIT result type.

The WIT variant type.

The WIT resource type.