Skip to main content

find_array_item_by_long_field

Function find_array_item_by_long_field 

Source
pub fn find_array_item_by_long_field(
    root: &Value,
    section: &str,
    field: &str,
    wanted: i64,
) -> Option<String>
Expand description

Finds an array row by a positive integer field.

§Parameters

§Returns

Returns Some when crate::runtime::json_commands::find_array_item_by_long_field can produce a value and None otherwise.

§Performance

Performance is proportional to the size of the supplied inputs and any parsed or loaded data consumed by crate::runtime::json_commands::find_array_item_by_long_field.

§Examples

ⓘ
let _result = pharos_native::runtime::json_commands::find_array_item_by_long_field(std::path::Path::new("."), "items", "field", todo!());