[−][src]Attribute Macro rudeboy_derive::user_data
#[user_data]
Generates an implementation of rlua::UserData
for the tagged type
definition or the type that matches a tagged impl block.
Takes zero or more of the following parameters. If given none, then the exported type will have no methods or metamethods available.
- MetaMethods - will use the
RudeboyMetaMethods
trait to add generated meta methods - Methods - will use the
RudeboyMethods
trait to add generated methods
Note: if you wish to add additional (meta)methods beyond the ones generated
by rudeboy, do not use this macro and instead manually call the appropriate
trait methods in your implementation of rlua::UserData