Module leo_span::symbol

source ·

Modules§

Macros§

  • consts 🔒
    A helper for symbols defined below. The macro’s job is to bind conveniently usable const items to the symbol names provided. For example, with symbol { a, b } you’d have sym::a and sym::b.
  • strings 🔒
    A helper for symbols defined below. The macro’s job is to merge all the hard coded strings into a single array of strings. The strategy applied is push-down accumulation.
  • symbols 🔒
    Creates predefined symbols used throughout the Leo compiler and language. Broadly speaking, any hard coded string in the compiler should be defined here.

Structs§

  • The inner interner. This construction is used to get interior mutability in Interner.
  • Interner 🔒
    A symbol-to-string interner.
  • All the globals for a compiler sessions.
  • An interned string.

Enums§

  • An interned string, either prefilled “at compile time” (Static), or created at runtime (Owned).

Constants§

Statics§

Functions§