MCPcopy Create free account
hub / github.com/It4innovations/hyperqueue / has_items

Method has_items

crates/hyperqueue/src/dashboard/ui/widgets/table.rs:137–139  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

135
136impl<T> StatefulTable<T> {
137 fn has_items(&self) -> bool {
138 !self.items.is_empty()
139 }
140
141 fn select_last(&mut self) {
142 if self.has_items() {

Callers 5

set_itemsMethod · 0.80
select_next_wrapMethod · 0.80
select_previous_wrapMethod · 0.80
drawMethod · 0.80
select_lastMethod · 0.80

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected