Skip to main content

resolve_runtime_path

Function resolve_runtime_path 

Source
pub fn resolve_runtime_path(root: &Path, relative: &str) -> Option<PathBuf>
Expand description

Returns a path under a trusted root for a validated relative helper value.

§Parameters

§Returns

Returns Some when crate::runtime::ops_bridge::resolve_runtime_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::runtime::ops_bridge::resolve_runtime_path.

§Examples

ⓘ
let _result = pharos_native::runtime::ops_bridge::resolve_runtime_path(std::path::Path::new("."), todo!());