提交 aac078dc 编写于 作者: B bors

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

Closes #17210
...@@ -170,6 +170,7 @@ pub fn intersects(&self, other: $BitFlags) -> bool { ...@@ -170,6 +170,7 @@ pub fn intersects(&self, other: $BitFlags) -> bool {
} }
/// Returns `true` all of the flags in `other` are contained within `self`. /// Returns `true` all of the flags in `other` are contained within `self`.
#[inline]
pub fn contains(&self, other: $BitFlags) -> bool { pub fn contains(&self, other: $BitFlags) -> bool {
(self & other) == other (self & other) == other
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册