windows-bindgen
generated _Impl
trait methods can be simplified
#3398
Labels
enhancement
New feature or request
Suggestion
A COM interface whose methods are SAL annotated is usually simplified. However, the generated
_Impl
trait is less simplified.For example, consider the following interface:
The generated
ITestInterface
looks like that:pBuffer
andcbSize
were nicely merged into a mutable slice thanks to the SAL annotations. However, when implementing this interface we need to implement the following trait:The return value for the
_Impl
trait method was simplified, but not the slice param. If it was simplified as well, it would allow us to implement the interface without using unsafe codeThe text was updated successfully, but these errors were encountered: