Trait LuaBuilder

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

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§

Source

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

Create a Lua builder for this type

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§