Skip to content

Should TypeId always require eg Clone + 'static? #51

@jsdw

Description

@jsdw

Eg in scale-value, we need to clone TypeIds. Requiring this.

paritytech/scale-value#45 (comment)

Perhaps in our DecodeAsType/DecodeAsFields (and the scale-encode versions) we should just constrain TypeId: Clone + Send + Sync + 'static or something like that, so our impls can rely on such things better.

This could also exist in scale-type-resolver itself.

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