Skip to content

Enum Variants to Numpy Dtype #234

Closed
Closed
@aaronclong

Description

@aaronclong

I know there is the Element trait, but it isn't easy to implement and almost impossible for Enums.

I wonder if it would be possible to introduce a new trait that would allow for conversion.

My use case was to convert avro records to numpy arrays. The exact schema for the avro file might not be known a head of time. Unfortunately, I don't think it is possible with the library's current infrastructure.

Side note, new to Rust, there may be many uninformed/unintelligent things said above.

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