Trait mond::ToLua [] [src]

pub trait ToLua {
    fn to_lua(&self, state: &mut State);
}

Trait for types that can be pushed onto the stack of a Lua state.

It is important that implementors of this trait ensure that to_lua behaves like one of the lua_push* functions for consistency.

Required Methods

Pushes a value of type Self onto the stack of a Lua state.

Implementations on Foreign Types

impl<'a> ToLua for &'a str
[src]

[src]

impl<'a> ToLua for &'a [u8]
[src]

[src]

impl ToLua for String
[src]

[src]

impl ToLua for bool
[src]

[src]

impl<T> ToLua for *mut T
[src]

[src]

impl<T: ToLua> ToLua for Option<T>
[src]

[src]

Implementors