mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
auto merge of #17254 : gamazeps/rust/issue17210, r=alexcrichton
Closes #17210
This commit is contained in:
commit
aac078dca5
@ -170,6 +170,7 @@ macro_rules! bitflags {
|
||||
}
|
||||
|
||||
/// Returns `true` all of the flags in `other` are contained within `self`.
|
||||
#[inline]
|
||||
pub fn contains(&self, other: $BitFlags) -> bool {
|
||||
(self & other) == other
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user