MCPcopy Create free account
hub / github.com/ad-si/LuaCAD / table_get_u32

Function table_get_u32

crates/luacad/src/lua_engine.rs:27–29  ·  view source on GitHub ↗
(t: &mlua::Table, key: &str)

Source from the content-addressed store, hash-verified

25/// A wrong-typed value (e.g. `center = {0, 0}`) must not silently read as
26/// `false` — that quietly produces the wrong shape.
27fn table_get_bool(
28 t: &mlua::Table,
29 func: &str,
30 key: &str,
31) -> mlua::Result<bool> {
32 match t.get::<mlua::Value>(key)? {

Callers 2

table_segmentsFunction · 0.70
execute_luaFunction · 0.70

Calls 1

table_get_f32Function · 0.70

Tested by

no test coverage detected