-
Notifications
You must be signed in to change notification settings - Fork 503
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplify for optional value types #292
Comments
Closing this old issue - doesn't seem to be much demand for such API support. Let me know if you have thoughts to the contrary. 😊 |
Reopening as there's renewed demand for WinRT type system support. Doing what I described here #2310 (comment) should be a little easier with a stock implementation. |
I think that |
WinRT uses
IReference<T>
parameter and field types to indicate that a given argument/value is optional. This should be expressed in Rust usingOption<T>
. In particular, we should addParam
specializations (as we do for strings) forIReference<T>
input parameters to allow parameters to either acceptT
orNone
.This builds on #92.
The text was updated successfully, but these errors were encountered: