Crate rlua

source ·

Modules§

  • Low level bindings to Lua 5.4/5.3/5.2/5.1 (including LuaJIT) and Roblox Luau.

Macros§

Structs§

  • Handle to an internal Lua userdata for any type that implements UserData.
  • A wrapper type for an immutably borrowed value from an app data container.
  • A wrapper type for a mutably borrowed value from an app data container.
  • Returned from Lua::load and is used to finalize loading and executing Lua main chunks.
  • Contains information about currently executing Lua code.
  • Handle to an internal Lua function.
  • Contains information about a function.
  • Determines when a hook function will be called by Lua.
  • A “light” userdata value. Equivalent to an unmanaged raw pointer.
  • Top level Lua struct which represents an instance of Lua VM.
  • Controls Lua interpreter behavior such as Rust panics handling.
  • Multiple Lua values used for both argument passing and also for multiple return values.
  • An auto generated key into the Lua registry.
  • Constructed by the Lua::scope method, allows temporarily creating Lua userdata and callbacks that are not required to be Send or ’static.
  • Flags describing the set of lua standard libraries to load.
  • Handle to an internal Lua string.
  • Handle to an internal Lua table.
  • An iterator over the pairs of a Lua table.
  • An iterator over the sequence part of a Lua table.
  • Handle to an internal Lua thread (coroutine).
  • Handle to a UserData metatable.
  • A wrapper type for an immutably borrowed value from a AnyUserData.
  • A wrapper type for a mutably borrowed value from a AnyUserData.
  • Handle to registry for userdata methods and metamethods.
  • Wraps a variable number of Ts.
  • A raw Lua state associated with a thread.

Enums§

  • Represents chunk mode (text or binary).
  • Represents a specific event that triggered the hook.
  • Error type returned by mlua methods.
  • Mode of the Lua garbage collector (GC).
  • Kinds of metamethods that can be overridden.
  • Status of a Lua thread (coroutine).
  • A dynamically typed Lua value. The String, Table, Function, Thread, and UserData variants contain handle types into the internal Lua state. It is a logic error to mix handle types between separate Lua instances, and doing so will result in a panic.

Traits§

Type Aliases§

  • Type of Lua integer numbers.
  • Type of Lua floating point numbers.
  • A specialized Result type used by mlua’s API.
  • Type for native C functions that can be passed to Lua

Derive Macros§