Skip to main content

find_in_array_mut

Function find_in_array_mut 

Source
pub fn find_in_array_mut<'a>(
    array: &'a mut [Value],
    field: &str,
    value: &str,
) -> Option<&'a mut Value>
Expand description

Get mutable reference to item in config array

§Arguments

  • array - Mutable array of configuration items
  • field - Field name to search
  • value - Value to match

§Returns

Mutable reference to matching item, or None if not found