MCPcopy Create free account
hub / github.com/bitflags/bitflags / intersects

Method intersects

src/traits.rs:269–274  ·  view source on GitHub ↗

Whether any set bits in `other` are also set in `self`.

(&self, other: Self)

Source from the content-addressed store, hash-verified

267
268 /// Whether any set bits in `other` are also set in `self`.
269 fn intersects(&self, other: Self) -> bool
270 where
271 Self: Sized,
272 {
273 self.bits() & other.bits() != Self::Bits::EMPTY
274 }
275
276 /// Whether all set bits in `other` are also set in `self`.
277 fn contains(&self, other: Self) -> bool

Callers 1

nextMethod · 0.80

Implementers 2

macro_free.rsexamples/macro_free.rs
custom_bits_type.rsexamples/custom_bits_type.rs

Calls 1

bitsMethod · 0.45

Tested by

no test coverage detected