Skip to main content

Module string

Module string 

Source
Expand description

Lua string handling.

This module provides types for working with Lua strings from Rust.

§Main Types

  • LuaString - A handle to an internal Lua string (may not be valid UTF-8).
  • BorrowedStr - A borrowed &str view of a Lua string that holds a strong reference to the Lua state.
  • BorrowedBytes - A borrowed &[u8] view of a Lua string that holds a strong reference to the Lua state.

Structs§

BorrowedBytes
A borrowed byte slice (&[u8]) that holds a strong reference to the Lua state.
BorrowedStr
A borrowed string (&str) that holds a strong reference to the Lua state.
LuaString
Handle to an internal Lua string.