> Another solution would be to implement Zeroable for __BindgenBitfieldUnit in
> bindings.rs, but this is much nicer!  It works even with old Rust versions
> and, even though it needs manual implementation of the trait each type, it
> doesn't require enumerating the fields one by one.  So it's better than the
> current version of Zeroable and, if you wish, you can also replace existing
> implementations of Zeroable with const_zero.

I'm working on this, and it's just a simple patch.

But I'm not sure why Zeroable needs a Default constraint. I think Sized
seems to be enough, doesn't it?

Thanks,
Zhao


Reply via email to