KDAB / cxx-qt

Safe interop between Rust and Qt
https://kdab.github.io/cxx-qt/book/
964 stars 66 forks source link

Make rust_mut() API convenient by implicit as_mut #979

Open LeonMatthesKDAB opened 2 weeks ago

LeonMatthesKDAB commented 2 weeks ago

I just talked with Andy about this and he inspired me to take another crack at removing all the as_mut() calls.

So this is an idea of how to make this work. However, it's very much non-standard and may be confusing, as it only drops the as_mut() requirement for rust_mut() and nothing else.

Maybe this is not worth it, but an idea we can play with.