[−][src]Derive Macro rudeboy_derive::Index
#[derive(Index)]
Generates an index metamethod for a UserData struct type
The derive macro implements the RudeboyIndex
trait. To add the metamethod
to a userdata type, call Self::generate_index()
in your implementation of
add_methods
for rlua::UserData