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

Bindings for values that can be on-stack or refcounted #26

@mzabaluev

Description

@mzabaluev

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions