This repository was archived by the owner on Nov 26, 2020. It is now read-only.

Description
There are GLib types: GVariantBuilder, GVariantDict, and GVariantIter, that can be heap-allocated and then refcounted, or be created on stack which naturally does not allow refcounting.
Bindings for each of these would likely require three different types:
- an on-stack type, calling on-stack cleanup in
Drop;
- a type implementing
Refcount to represent heap-allocated structures;
- a type that implements most of the bound methods, with an
AsRef-style conversion from the two types described above.