Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Match trait #9

Open
BigBadE opened this issue Oct 25, 2023 · 1 comment
Open

[FEATURE] Match trait #9

BigBadE opened this issue Oct 25, 2023 · 1 comment
Assignees

Comments

@BigBadE
Copy link
Owner

BigBadE commented Oct 25, 2023

Describe Your Feature
A match trait to be used with the match block.

Provide a Code Snippet Using Your Feature

fn test() {
    // Match 4 to an inclusive range from 0 to 5
    return 4.matches(0..=5);
}

Additional Information
Match should be implemented for everything Equals implements (Look at how NotEquals is implemented).
Match should only work on inclusive ranges, checking if the value is within the range.

@tyler1peyton
Copy link

I am interested in working on this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Easy
Status: Easy
Development

No branches or pull requests

2 participants