Skip to content

Kind trait? #10

@greyblake

Description

@greyblake

Hi,
thanks for the very handy trait.

Would you consider providing a trait, e.g. something like this:

trait Kind {
    type Kind;
    fn kind() -> Self::Kind
}

This would enable building more generic / reusable code.

For example, in my particular case, I have functions to detect values of duplicated kinds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions