auto merge of #17254 : gamazeps/rust/issue17210, r=alexcrichton

Closes #17210
This commit is contained in:
bors
2014-09-17 12:06:22 +00:00
+1
View File
@@ -170,6 +170,7 @@ pub fn intersects(&self, other: $BitFlags) -> bool {
}
/// Returns `true` all of the flags in `other` are contained within `self`.
#[inline]
pub fn contains(&self, other: $BitFlags) -> bool {
(self & other) == other
}