Skip to main content

Module prelude

Module prelude 

Source
Expand description

Glob-imported by every module so the Phase-B extension traits resolve without each module having to list them individually.

TODO(phase-b): once the canonical types in lua-types grow these methods natively, this prelude can shrink to just the LuaState helpers.

Re-exportsยง

pub use crate::state::LuaValueExt;
pub use crate::state::LuaTypeExt;
pub use crate::state::StackIdxExt;
pub use crate::state::LuaTableRefExt;
pub use crate::state::LuaUserDataRefExt;
pub use crate::state::LuaStringRefExt;
pub use crate::state::LuaLClosureRefExt;
pub use crate::state::LuaClosureExt;
pub use crate::state::LuaProtoExt;
pub use crate::vm::InstructionExt;
pub use crate::vm::OpCode;