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 Extend for bitflags #49

Merged
merged 1 commit into from
Apr 24, 2016

Conversation

kamalmarhubi
Copy link
Contributor

This commit adds an Extend impl, and redefines the FromIterator impl
to use it.

@kamalmarhubi kamalmarhubi force-pushed the impl-extend branch 2 times, most recently from 10422c8 to 96d6457 Compare April 23, 2016 17:26
impl $crate::__core::iter::FromIterator<$BitFlags> for $BitFlags {
#[inline]
Copy link
Contributor

Choose a reason for hiding this comment

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

It should be fine to remove this #[inline] because the function is already generic which will inline it elsewhere anyway

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah good to know, thanks! (Done.)

@alexcrichton
Copy link
Contributor

Neat!

This commit adds an `Extend` impl, and redefines the `FromIterator` impl
to use it.
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.

None yet

2 participants