Skip to content

It would be nice if Block and Series types could be the same underneath #20

Open
@Lokathor

Description

@Lokathor

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions