Derive Macro tealr::MluaUserData [−][src]
#[derive(MluaUserData)]
Expand description
Implements mlua::UserData and tealr::TypeBody
It wraps the mlua::UserDataMethods into tealr::mlu::UserDataWrapper
and then passes it to tealr::TealData::add_methods
.
Type body is implemented in a similar way, where it uses the tealr::mlu::TealData
implementation to get the types