kenz-gelsoft / wxRust2

re-exploration Rust binding to wx
MIT License
77 stars 10 forks source link

Rename TypeIsOwned<bool> to TypeInRust<> #186

Closed kenz-gelsoft closed 1 year ago

kenz-gelsoft commented 1 year ago

As this represents the concept clearer and can be distinguished from Rust's owned type.

also rename Unowned -> InCxx/InCpp/FromCpp

kenz-gelsoft commented 1 year ago

https://github.com/kenz-gelsoft/wxRust2/pull/109#issue-1322916036

I modeled downcasted instance as unowned (by Rust code), so renaming breaks the semntics.