]> git.bitcoin.ninja Git - ldk-c-bindings/commit
Use native types when converting for for single-impl traits
authorMatt Corallo <git@bluematt.me>
Mon, 26 Aug 2024 19:40:32 +0000 (19:40 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 3 Sep 2024 18:55:34 +0000 (18:55 +0000)
commita86b1d711de7aebe48c3bc980ef8995ccaef23a5
treedb8d3e5c35fe7b89f336cc1ae8909f4d2bd3ae3c
parentc4f2096c26abaa92505602604ca6e71c36c76817
Use native types when converting for for single-impl traits

Now that we properly handle single-impl traits as Rust types (i.e.
in generic parameters), we have to handle "converting" single-impl
traits. Here we implement this, diverging from the impl of the
underlying impl'd trait by keeping the existing type as-passed and
only ref'ing it if required.
c-bindings-gen/src/types.rs