pub fn load_config_tree<T, E, F>(
root_path: impl AsRef<Path>,
load: F,
) -> Result<ConfigTree<T>>Expand description
Loads a config tree with default traversal options.
§Type Parameters
T: Loaded value type stored for each config source.E: Error type returned byload.F: Source loader callback type.
§Arguments
root_path: Root config path to load first.load: Callback that receives each normalized absolute source path and returns the source value with its declared include paths.
§Returns
Returns a ConfigTree containing loaded nodes in traversal order.