[bindings] Use common conv in `_write` impls, drop type restrictions
authorMatt Corallo <git@bluematt.me>
Wed, 30 Dec 2020 22:50:43 +0000 (17:50 -0500)
committerMatt Corallo <git@bluematt.me>
Wed, 3 Feb 2021 15:11:28 +0000 (10:11 -0500)
commitdfef21c66628dae5e38d3273572ff0ba668b9ffc
tree140514470401fa03b6f6899a280371f382519991
parente36b51400fad4173cde525e0378e32e2bbcaa377
[bindings] Use common conv in `_write` impls, drop type restrictions

This expands the manual implementation logic for `*_write` and
`*_read` methods to most types, converting the `*_write` path to
the common type-conversion logic to ensure it works.

Note that `*_write_void` is still only implemented for has-inner
types, as its unclear what the `void*` would point to for others.
c-bindings-gen/src/main.rs
c-bindings-gen/src/types.rs