(t: &mlua::Table, key: &str)
| 15 | // --------------------------------------------------------------------------- |
| 16 | |
| 17 | fn table_get_f32(t: &mlua::Table, key: &str) -> Option<f32> { |
| 18 | t.get::<mlua::Value>(key) |
| 19 | .ok() |
| 20 | .and_then(|v| lua_val_to_f32(&v)) |
| 21 | } |
| 22 | |
| 23 | /// Get an optional boolean parameter, defaulting to `false` when absent. |
| 24 | /// |
no test coverage detected