Skip to main content

declarative_source_resolve_dotted_path

Function declarative_source_resolve_dotted_path 

Source
pub fn declarative_source_resolve_dotted_path<'a>(
    root: &'a Value,
    dotted_path: &str,
) -> Option<&'a Value>
Expand description

Resolves a dot-separated object or array path without creating intermediate values.

§Parameters

§Returns

Returns Some when crate::declarative::declarative_source_resolve_dotted_path 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::declarative::declarative_source_resolve_dotted_path.

§Examples

ⓘ
let _result = pharos_runtime_compiler::declarative::declarative_source_resolve_dotted_path(std::path::Path::new("."), todo!());