v0.0.12: macro-generated delegates
A #[lua_methods] method that returns a reference now auto-registers as a delegate, so a sub-reference accessor is just a normal Rust method:
#[lua_methods]
impl World {
pub fn entity(&mut self, id: u32) -> &mut Entity { &mut self.entities[id as usize] }
}
// Lua: world:entity(5):set_hp(100)-> &mut Tbecomes a mutable delegate;-> &Ta read-only one (newAnyUserData::delegate_ref).- Accessor arguments are captured;
&mut self+-> &Tis a compile error with guidance.
Also folds in the crate-description and README cleanup from 0.0.11. No breaking changes.