Skip to main content

set_policy_field

Function set_policy_field 

Source
fn set_policy_field(
    policy: &mut CompletionPolicy,
    field: &str,
    value: Option<&Value>,
) -> Result<(), EditError>
Expand description

Sets one policy field, or clears it with None, and checks the result. Owns the errors for unknown and misspelled field names.