componentized/directory

componentized:constants

interface

Create custom wasm components that export constant values.

interface u8 componentized:constants/u8@0.1.1

Constants for the u8 unsigned integer type.

Functions

functionmax: func() -> u8

u8 max value @value 255

functionmin: func() -> u8

u8 min value @value 0

functionbits: func() -> u32

The size of u8 in bits. @value 8

WIT

/// Constants for the `u8` unsigned integer type.
interface %u8 {
  /// u8 max value
  /// @value 255
  max: func() -> u8;

  /// u8 min value
  /// @value 0
  min: func() -> u8;

  /// The size of `u8` in bits.
  /// @value 8
  bits: func() -> u32;
}