Trait bones_scripting::lua::MetatableFn

source ·
pub trait MetatableFn {
    // Required method
    fn metatable_fn(&self) -> fn(_: Context<'_>) -> Table<'_>;
}
Expand description

Helper trait to get a singleton fn pointer for the metatable for a type.

Required Methods§

source

fn metatable_fn(&self) -> fn(_: Context<'_>) -> Table<'_>

Implementations on Foreign Types§

source§

impl MetatableFn for SchemaRef<'_>

source§

fn metatable_fn(&self) -> fn(_: Context<'_>) -> Table<'_>

source§

impl MetatableFn for SchemaRefMut<'_>

source§

fn metatable_fn(&self) -> fn(_: Context<'_>) -> Table<'_>

Implementors§