diff options
| author | Felix Raimundo <felix.raimundo@telecom-paristech.fr> | 2014-09-14 20:07:45 +0200 |
|---|---|---|
| committer | Felix Raimundo <felix.raimundo@telecom-paristech.fr> | 2014-09-14 20:07:45 +0200 |
| commit | 06e85fd1e2c337ba6fa760e0195bd05c855e4b60 (patch) | |
| tree | afc8db2f3f24d9b7d286c858afb3899e2bef2f19 /src | |
| parent | 21d1f4d7c0e637d8ae073798e666b880d31781b1 (diff) | |
| download | rust-06e85fd1e2c337ba6fa760e0195bd05c855e4b60.tar.gz rust-06e85fd1e2c337ba6fa760e0195bd05c855e4b60.zip | |
inlines contains in bitflags!
Closes #17210
Diffstat (limited to 'src')
| -rw-r--r-- | src/libstd/bitflags.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstd/bitflags.rs b/src/libstd/bitflags.rs index 3d1bc20cca4..8af88b4fe72 100644 --- a/src/libstd/bitflags.rs +++ b/src/libstd/bitflags.rs @@ -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 } |
