Skip to main content

parse_patch

Function parse_patch 

Source
pub fn parse_patch(
    text: &str,
    resolve: &dyn Fn(&str) -> PathBuf,
) -> Result<Vec<Op>, PatchError>
Expand description

Parses patch text into operations, resolving each path with resolve.

Several patch documents may follow one another, each its own *** Begin Patch … *** End Patch pair, so a program can concatenate what it built separately.

§Errors

Returns the first line that does not fit the format.