-
Notifications
You must be signed in to change notification settings - Fork 124
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
Support arrays ([impl ViewSequence; N]
) as ViewSequence
s
#175
Conversation
Well I guess I'm getting too used to using unstable Rust ( Otherwise this needs I think a more dynamic solution ( |
Your comment made me curious and I looked into |
|
I see. Because the resulting array is not used (as far as I see), there also would be no |
Note the function signature of It is used in every rebuild and message invocation, where it is handed by the parent/owning view sequence. |
Now I get it. I thought I checked 3 times if the result is returned and I didn't see it🤦🏼♂️ |
The relevant feature is now in stable rust. So this is ready. We could increase the Rust version in a separate PR as well... |
Sorry, this probably has suffered the same fate at the hands of #310 as the other PRs |
c462657
to
bdcd009
Compare
I've updated this to the new xilem_core. Hmm I hope this doesn't suffer the same fate again though... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few "prose" nits, but otherwise this looks good.
I'm not really sure how useful this is, but it also doesn't cost us anything to support.
Yeah I think it's mostly useful to avoid the more elaborate (and inefficient) version with |
Thanks for the quick review, I'm merging. |
Adds the blanket impl
impl<const N: usize, VT: ViewSequence> ViewSequence for [VT; N]
Allows for example something like this: