rust-qt / ritual

Use C++ libraries from Rust
Apache License 2.0
1.22k stars 49 forks source link

AsRef, AsMut, Borrow, Deref #33

Closed Riateche closed 4 years ago

Riateche commented 7 years ago

Investigate if AsRef, AsMut, Borrow, Deref traits should be implemented to convert from &T1 to &T2 if T1 is a C++ subclass or T2.

Riateche commented 4 years ago

Deref and cpp_utils::StaticUpcast are now implemented for derived classes.