auto merge of #17254 : gamazeps/rust/issue17210, r=alexcrichton
Closes #17210
This commit is contained in:
commit
aac078dca5
1 changed files with 1 additions and 0 deletions
|
@ -170,6 +170,7 @@ macro_rules! bitflags {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// 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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue