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

Method contains

src/traits.rs:277–282  ·  view source on GitHub ↗

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

(&self, other: Self)

Source from the content-addressed store, hash-verified

275
276 /// Whether all set bits in `other` are also set in `self`.
277 fn contains(&self, other: Self) -> bool
278 where
279 Self: Sized,
280 {
281 self.bits() & other.bits() == other.bits()
282 }
283
284 /// Remove any unknown bits from the flags.
285 fn truncate(&mut self)

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