[][src]Trait rlua_builders::LuaBuilder

pub trait LuaBuilder<'s, T: ToLua<'s>>: UserData + Clone {
    fn builder(ctx: Context<'s>) -> Result<T>;
}

A struct or enum with this Trait provides a Lua builder.

Should not be implemented manually, instead use the rlua-builders-derive crate to derive it automatically for any struct or enum.

Required methods

fn builder(ctx: Context<'s>) -> Result<T>

Create a Lua builder for this type

Loading content...

Implementors

Loading content...