Skip to main content

Module chunk

Module chunk 

Source
Expand description

Lua chunk loading and execution.

This module provides types for loading Lua source code or bytecode into a Chunk, configuring how it is compiled and executed, and converting it into a callable Function.

Chunks can be loaded from strings, byte slices, or files via the AsChunk trait.

Structs§

Chunk
Returned from Lua::load and is used to finalize loading and executing Lua main chunks.
Compilerluau
Luau compiler

Enums§

ChunkMode
Represents chunk mode (text or binary).
CompileConstantluau
Represents a constant value that can be used by Luau compiler.

Traits§

AsChunk
Trait for types loadable by Lua and convertible to a Chunk