Skip to content

Implement Encode and Decode for non-empty tuple types? #403

Open
@repnop

Description

I've been messing around with a library for some work stuff and had an interesting idea that would utilize tuple types, though they would need the Encode and Decode impls for this to work. my thought is that the tuples would be encoded as a SEQUENCE type, similar to arrays and Vecs, but allowing for heterogeneous types in the sequence. thoughts? only complication I think would be perhaps in the decoding step since right now the decode_sequence_of API expects a single type and the decode_sequence seems somewhat complicated for something like this (and I didn't quite understand exactly what the purpose of some of the parameters and args was).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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