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

Method is_all

src/traits.rs:262–266  ·  view source on GitHub ↗

Whether all known bits in this flags value are set.

(&self)

Source from the content-addressed store, hash-verified

260
261 /// Whether all known bits in this flags value are set.
262 fn is_all(&self) -> bool {
263 // NOTE: We check against `Self::all` here, not `Self::Bits::ALL`
264 // because the set of all flags may not use all bits
265 Self::all().bits() | self.bits() == self.bits()
266 }
267
268 /// Whether any set bits in `other` are also set in `self`.
269 fn intersects(&self, other: Self) -> bool

Callers

nothing calls this directly

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