pub fn apply_change(
key: SettingKey,
s: &mut Settings,
new: String,
) -> Result<()>Expand description
Apply a scalar edit.
new is the stringified new value:
Toggle:"true"/"false"Cycle: the variant’sDisplayformSubmenuSelect: one of the allowed stringsText: free-form, parsed viaFromStron the target field type
Returns Err on:
- parse failure (unknown cycle variant, non-numeric text)
- edits to
DisabledTools/ModelRoles/Keybindings(their structured editors own those fields — must not silently no-op) - edits to any
Pointerrow (read-only by design)