windows-bindgen
should avoid Param
traits as much as possible
#3320
Labels
enhancement
New feature or request
The
Param
trait provide the convertibility necessary for many APIs but the metadata, particularly for Win32, don't make it clear what those APIs are so the bindings tend to overuse theParam
trait "just in case". This causes a lot of confusion especially for folks new to Rust or Windows. A common mistake is to pass a raw pointer value when aHANDLE
is expected. The Rust compiler error would be very straightforward if not for theParam
trait.In this case, the compiler error message is very unhelpful.
The text was updated successfully, but these errors were encountered: