config

Function materialize_to_lua_value

Source
pub fn materialize_to_lua_value(lua: &Lua, value: Value) -> Result<Value>
Expand description

This function will try to obtain a native lua representation of the provided value. It does this by attempting to iterate the pairs of any userdata it finds as either the value itself or the values of a table value by recursively applying materialize_to_lua_value to the value. This produces a lua value that can then be processed by the Deserialize impl on Value.