contextfree / winrt-rust

Use and (eventually) make Windows Runtime APIs with Rust
Apache License 2.0
142 stars 10 forks source link

Implement support for weak references #78

Open Boddlnagg opened 5 years ago

Boddlnagg commented 5 years ago

This requires adding definitions of the IWeakReference and IWeakReferenceSource interfaces, and maybe adding some nice wrapper types or impls.

See also https://kennykerr.ca/2018/03/15/cppwinrt-understanding-weak-references-dispose-pattern/