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

Implement len() for EnumSet. #18740

Closed
wants to merge 1 commit into from

Conversation

jbcrail
Copy link
Contributor

@jbcrail jbcrail commented Nov 7, 2014

This commit adds the missing EnumSet method mentioned by @gankro.

cc #18424

@jbcrail jbcrail mentioned this pull request Nov 7, 2014
24 tasks
@@ -92,6 +91,12 @@ impl<E:CLike> EnumSet<E> {
EnumSet {bits: 0}
}

/// Return the number of elements in the given `EnumSet`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/Return/Returns

@Gankra
Copy link
Contributor

Gankra commented Nov 7, 2014

LGTM, just some style nits. Thanks!

@jbcrail jbcrail force-pushed the implement-enum-set-len branch from e99195a to a79d4be Compare November 7, 2014 21:09
@jbcrail
Copy link
Contributor Author

jbcrail commented Nov 7, 2014

Thanks for the comments! I used your suggestions.

bors added a commit that referenced this pull request Nov 8, 2014
…chton

This commit adds the missing EnumSet method mentioned by @gankro.

cc #18424
@bors bors closed this Nov 8, 2014
@jbcrail jbcrail deleted the implement-enum-set-len branch November 11, 2014 01:53
lnicola pushed a commit to lnicola/rust that referenced this pull request Dec 23, 2024
fix: Fix empty check diagnostics not marking files as changed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants