Skip to content

bindings-macro: get rid of the janky is_integer_type check wrt. sequences in favor of asserting a trait impl #1418

@Centril

Description

@Centril

Rather than this janky check that the type can be used as a sequence:

&& !matches!(field.ty, syn::Type::Path(p) if is_integer_type(&p.path))

let the sequence compatible types implement a trait and assert that it is implemented.

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