Module tealr::rlu

source ·
Expand description

traits and types specific to rlua

Re-exports

Modules

  • this module holds some pre made types that can be used to create generics.

Macros

  • This macro creates a new type that acts as similar as possible to rlua::Value however, it acts as a generic type instead of being translated as any.
  • Creates a type that allows you to give names to the positional parameters. The names only show up in the documentation and definition files. Making them great to add just a bit more of documentation in the function signature itself
  • Creates a new type that is a union of the types you gave.

Structs

Traits

Functions

  • Gets the type of a function that is useful for the FromLuaConversion/ToLuaConversion error.
  • used to export instances to lua

Derive Macros

  • Implements the needed traits to make this trait convertible to and from lua values. It does this differently for structs and enums but will implement the TypeBody trait in both cases.
  • Implement both rlua::UserData and [TypeName](tealr::TypeName].
  • Implements rlua::UserData and tealr::TypeBody