[bindings] Don't require trait impl for-structs to have no generics
authorMatt Corallo <git@bluematt.me>
Thu, 31 Dec 2020 16:14:22 +0000 (11:14 -0500)
committerMatt Corallo <git@bluematt.me>
Wed, 3 Feb 2021 15:11:28 +0000 (10:11 -0500)
commitac078c103c64f19a70f7967dce620a1905397426
tree20c5c2f0d2796fbfd0f1c0a5d466315b119a7370
parent56134a2bd123b75448536de5e945374e8b011f92
[bindings] Don't require trait impl for-structs to have no generics

This (finally) exposes `ChannelManager`/`ChannelMonitor` _write
methods, which were (needlessly) excluded as the structs themselves
have generic parameters. Sadly, we also now need to parse
`(C-not exported)` doc comments on impl blocks as we otherwise try
to expose _write methods for `&Vec<RouteHop>`, which doesn't work
(and isn't particularly interesting for users anyway). We add such
doc comments there.
c-bindings-gen/src/main.rs
lightning/src/ln/chan_utils.rs
lightning/src/routing/router.rs