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

Method has

crates/hyperqueue/src/client/commands/worker.rs:240–246  ·  view source on GitHub ↗
(&self, component: ResourceDetectComponent)

Source from the content-addressed store, hash-verified

238
239impl ResourceDetectComponents {
240 pub fn has(&self, component: ResourceDetectComponent) -> bool {
241 match self {
242 ResourceDetectComponents::All => true,
243 ResourceDetectComponents::None => false,
244 ResourceDetectComponents::Selected(selected) => selected.contains(&component),
245 }
246 }
247}
248
249#[derive(Parser)]

Callers 2

gather_configurationFunction · 0.80

Calls 1

containsMethod · 0.80

Tested by

no test coverage detected