MCPcopy Index your code
hub / github.com/Lymia/enumset / is_empty

Method is_empty

enumset/src/repr/array.rs:58–60  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

56 const EMPTY: Self = ArrayRepr([0; N]);
57
58 fn is_empty(&self) -> bool {
59 self.0.iter().all(|x| *x == 0)
60 }
61
62 fn add_bit(&mut self, bit: u32) {
63 let (idx, bit) = Self::split_bit(bit);

Callers 10

generate_codeFunction · 0.80
create_enum_conversionsFunction · 0.80
create_enum_const_opersFunction · 0.80
plan_for_enumFunction · 0.80
try_from_reprMethod · 0.80
try_from_arrayMethod · 0.80
try_from_sliceMethod · 0.80
has_unknown_bitsMethod · 0.80
nextMethod · 0.80
next_backMethod · 0.80

Calls 2

allMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected