Skip to main content

path_node

Function path_node 

Source
pub fn path_node(
    path: &str,
    value: &str,
    origin: Origin,
) -> Result<Node, ConfigError>
Expand description

A tree holding one value at a dotted path.

A last segment written +name appends when the tree is merged, the same spelling a drop-in file uses.

§Errors

ConfigError::Usage for an empty path or an empty segment — a..b, .a, a. name nothing, and reading them as something would be a guess.