Function git_config::parser::parse_from_str [−][src]
pub fn parse_from_str(input: &str) -> Result<Parser<'_>, Error<'_>>Expand description
Attempt to zero-copy parse the provided &str. On success, returns a
Parser that provides methods to accessing leading comments and sections
of a git-config file and can be converted into an iterator of Event
for higher level processing.
Errors
Returns an error if the string provided is not a valid git-config.
This generally is due to either invalid names or if there’s extraneous
data succeeding valid git-config data.