]> git.bitcoin.ninja Git - ldk-c-bindings/commit
Handle writing Rust types for single-impl traits
authorMatt Corallo <git@bluematt.me>
Mon, 26 Aug 2024 19:15:57 +0000 (19:15 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 3 Sep 2024 18:55:34 +0000 (18:55 +0000)
commitc4f2096c26abaa92505602604ca6e71c36c76817
tree3df99e05acc37a473378167e71199c415d403843
parent5deb00bf8dddaab2f1b5995ecb1bf42960f70ed3
Handle writing Rust types for single-impl traits

Single-impl traits which are marked no-export (like
`AChannelManager` in LDK) are mapped as the singular implementing
type, rather than a full-blown trait.

Here we handle this case when writing Rust objects (generally used
in writing generic bounds).
c-bindings-gen/src/types.rs