[−][src]Attribute Macro rudeboy::Methods
#[Methods]
Exposes the methods in an impl block for a UserData struct type to lua
This attribute implements the RudeboyMethods
trait. To add the methods it
captured to a userdata type, call Self::generate_methods()
in your
implementation of add_methods
for rlua::UserData
Note that the struct type itself must implement RudeboyIndex
. Either
manually (not recommended) or using the Index
or NoIndex
derive
macros. Cannot be combined with IndexSealed