Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_code
Function · 0.80
create_enum_conversions
Function · 0.80
create_enum_const_opers
Function · 0.80
plan_for_enum
Function · 0.80
try_from_repr
Method · 0.80
try_from_array
Method · 0.80
try_from_slice
Method · 0.80
has_unknown_bits
Method · 0.80
next
Method · 0.80
next_back
Method · 0.80
Calls
2
all
Method · 0.45
iter
Method · 0.45
Tested by
no test coverage detected