Module yarnspinner::core

source ·
Expand description

Core types and traits that are used by both the compiler and runtime.

Macros§

Structs§

Enums§

  • All types in the virtual machine, both built-in, i.e. usable in Yarn scripts, and internal.
  • Represents a Yarn value. The chosen variant corresponds to the last assignment of the value, with the type being inferred from the type checker.
  • Represents a failure to convert one variant of YarnValue to a base type.

Traits§

  • The return value of a [YarnFn]. See [YarnFn] for more information on the kinds of signatures that can be registered.
  • A YarnFn with the Marker type parameter erased. See its documentation for more information about what kind of functions are allowed.
  • A function that can be registered into and called from Yarn. It must have the following properties:
  • Trait implemented by types that can be used in YarnFn-like contexts. Implemented by the following types and references of them:

Type Aliases§