encode

Function encode 

Source
pub fn encode(
    value: LuaValue,
    lua: &Lua,
    config: EncodeDecodeConfig,
) -> LuaResult<LuaString>
Expand description

Encodes / serializes the given value into a string, using the specified configuration.

ยงErrors

Errors when the encoding fails.