MCPcopy Index your code
hub / github.com/encounter/objdiff / variant_name

Function variant_name

objdiff-gui/src/views/config.rs:958–964  ·  view source on GitHub ↗
(variant: &ConfigEnumVariantInfo)

Source from the content-addressed store, hash-verified

956 override_value,
957 ) => {
958 fn variant_name(variant: &ConfigEnumVariantInfo) -> String {
959 if variant.is_default {
960 format!("{} (default)", variant.name)
961 } else {
962 variant.name.to_string()
963 }
964 }
965 let display_selected = match override_value {
966 Some(ConfigPropertyValue::Choice(value)) => value,
967 _ => base_selected,

Callers 1

config_property_uiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected