Skip to main content

parse_mutation_path

Function parse_mutation_path 

Source
pub fn parse_mutation_path(absolute_path: &str) -> Result<AbsolutePath, Error>
Expand description

Parses a raw string into the validated, normalized path a CommitRequest carries: absolute, normalized, and not the root.

This is the one named home for the invariant. Every surface that accepts a raw mutation path parses through it exactly once; planning re-asserts only the root guard ([ensure_mutation_path]) and never re-parses.