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

Method task_count

crates/hyperqueue/src/transfer/messages.rs:198–203  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

196
197impl JobTaskDescription {
198 pub fn task_count(&self) -> JobTaskCount {
199 match self {
200 JobTaskDescription::Array { ids, .. } => ids.id_count() as JobTaskCount,
201 JobTaskDescription::Graph { tasks, .. } => tasks.len() as JobTaskCount,
202 }
203 }
204
205 pub fn strip_large_data(&mut self) {
206 match self {

Callers 1

create_rowsFunction · 0.80

Calls 2

id_countMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected