Structs

  • The set of items that exist within some lexical scope via declaration or importing.
  • A single Module within a Sway project.
  • The set of items that represent the namespace context passed throughout type checking.
  • The root module, from which all other modules can be accessed.

Enums

  • Enum used to pass a value asking for insertion of type into trait map when an implementation of the trait cannot be found.

Type Aliases