You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently they are not the same type (and don't share the same iterator) because a const generic is used for the stride quantity on the Series.
A const generic cannot be filled in by an expression based on another generic at this time. In other words, for the Block, we can't say that it's just an alias of the Series with the stride filled in as the size_of::<T>().
We could:
use a field.
wait for const generics to allow this.
just live with the separation forever.
The text was updated successfully, but these errors were encountered:
Given the discussion on zulip, it seems this won't be possible for quite some time.
Lokathor
changed the title
It would be nice if VolBlock and VolSeries could share the same iterator.
It would be nice if Block and Series types could be the same underneath
Jul 20, 2021
Currently they are not the same type (and don't share the same iterator) because a const generic is used for the stride quantity on the Series.
A const generic cannot be filled in by an expression based on another generic at this time. In other words, for the Block, we can't say that it's just an alias of the Series with the stride filled in as the
size_of::<T>()
.We could:
The text was updated successfully, but these errors were encountered: