[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>
Mon, 4 Jan 2021 21:14:26 +0000 (16:14 -0500)
commitee3ac0e410f6e9674fbf0f3161c04b3838f2f2d9
tree7814dea7e1526f21b5b7faa079dcd447794bd9ca
parent0ee7a5a5f57ed4d5df65e67ed6507bfb3da5719d
[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