Enum rlua::LuaValue [] [src]

pub enum LuaValue<'lua> {
    Nil,
    Boolean(bool),
    LightUserData(LightUserData),
    Integer(LuaInteger),
    Number(LuaNumber),
    String(LuaString<'lua>),
    Table(LuaTable<'lua>),
    Function(LuaFunction<'lua>),
    Thread(LuaThread<'lua>),
    UserData(LuaUserData<'lua>),
    Error(LuaError),
}

A dynamically typed Lua value.

Variants

The Lua value nil.

The Lua value true or false.

A "light userdata" object, equivalent to a raw pointer.

An integer number.

Any Lua number convertible to a LuaInteger will be represented as this variant.

A floating point number.

An interned string, managed by Lua.

Unlike Rust strings, Lua strings may not be valid UTF-8.

Reference to a Lua table.

Reference to a Lua function (or closure).

Reference to a Lua thread (or coroutine).

Reference to a userdata object that holds a custom type which implements LuaUserDataType. Special builtin userdata types will be represented as other LuaValue variants.

LuaError is a special builtin userdata type. When received from Lua it is implicitly cloned.

Trait Implementations

impl<'lua> Debug for LuaValue<'lua>
[src]

Formats the value using the given formatter.

impl<'lua> Clone for LuaValue<'lua>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'lua> ToLua<'lua> for LuaValue<'lua>
[src]

Performs the conversion.

impl<'lua> FromLua<'lua> for LuaValue<'lua>
[src]

Performs the conversion.