Skip to content

Need a table column abstraction #758

Open
@molpopgen

Description

@molpopgen

We currently only expose table columns via their slices.
While this makes sense, rust's lack of implicit casts mean that you cannot index the columns using the relevant "id" type!
The result is some frustrating ergonomics when doing things that involve a lot of column indexing.

We need an abstraction of "table column" that can be indexed with usize , SizeType , and the table id type.

Indexing with the column types could be a tricky issue when implementing such a column.
If the id were a generic type, there are currently no traits for the table ids that provide useful bounds.
If the id were an associated type of a "column" trait, we still (may?) need a trait bound and we give up object safety for the trait (not a big deal?).

This is perhaps the biggest issue blocking a release of 0.15.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions