MetatableFn

Trait 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<'_>

Implementors§