MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / effective_single_driver

Function effective_single_driver

crates/openshell-server/src/cli.rs:726–732  ·  view source on GitHub ↗
(args: &RunArgs)

Source from the content-addressed store, hash-verified

724}
725
726fn effective_single_driver(args: &RunArgs) -> Option<ComputeDriverKind> {
727 match args.drivers.as_slice() {
728 [] => openshell_core::config::detect_driver(),
729 [driver] => driver.parse().ok(),
730 _ => None,
731 }
732}
733
734fn is_singleplayer_driver(args: &RunArgs) -> bool {
735 matches!(

Callers

nothing calls this directly

Calls 3

detect_driverFunction · 0.85
as_sliceMethod · 0.80
parseMethod · 0.45

Tested by

no test coverage detected