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

Method is_empty

src/traits.rs:257–259  ·  view source on GitHub ↗

Whether all bits in this flags value are unset.

(&self)

Source from the content-addressed store, hash-verified

255
256 /// Whether all bits in this flags value are unset.
257 fn is_empty(&self) -> bool {
258 self.bits() == Self::Bits::EMPTY
259 }
260
261 /// Whether all known bits in this flags value are set.
262 fn is_all(&self) -> bool {

Callers 9

is_namedMethod · 0.80
is_unnamedMethod · 0.80
all_namedMethod · 0.80
from_nameMethod · 0.80
from_strFunction · 0.80
from_str_strictFunction · 0.80
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