Skip to content

Commit

Permalink
feat(qttypes): Do more wrappers around QVariant
Browse files Browse the repository at this point in the history
Wrapped converters to and constructors from all available types. The rest
of them are marked as TODO comments for future implementers.
Methods and constructors, which I'm not sure about whether they are needed
to be exposed in Rust at all, are marked with `TODO?:` prefix.

Constructors are reordered according to the official Qt documentation
for ease of code navigation. Return types are shortened to `Self`.

Fixed some misleading links to upstream docs in From<{i,u}{32,64}> impls.

Some wrappers are impossible to write at this point without introducing
QMetaType and its Type enum in this crate or its dependencies, as currently
it would create a circular deps between qmetaobject and qttypes crates.
Such hypothetical implementations are left commented out for future ideas.
  • Loading branch information
ratijas committed Apr 23, 2021
1 parent ad28e6c commit 8b409d1
Showing 1 changed file with 543 additions and 65 deletions.
Loading

0 comments on commit 8b409d1

Please sign in to comment.