componentized/directory

componentized:constants

interface dev

Create custom wasm components that export constant values.

interface u16 componentized:constants/u16@0.0.0-dev

Constants for the u16 unsigned integer type.

Functions

functionmax: func() -> u16

u16 max value @value 65535

functionmin: func() -> u16

u16 min value @value 0

functionbits: func() -> u32

The size of u16 in bits. @value 16

WIT

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

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

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