Skip to main content

load_yaml_source

Function load_yaml_source 

Source
pub fn load_yaml_source(base_dir: &Path, rel_path: &str) -> Option<Value>
Expand description

Loads YAML source.

§Parameters

§Returns

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

§Examples

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