Struct rlua::LuaUserData [] [src]

pub struct LuaUserData<'lua>(_);

Handle to an internal instance of custom userdata. All userdata in this API is based around RefCell, to best match the mutable semantics of the lua language.

Methods

impl<'lua> LuaUserData<'lua>
[src]

Borrow this userdata out of the internal RefCell that is held in lua.

Borrow mutably this userdata out of the internal RefCell that is held in lua.

Trait Implementations

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter.

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

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