Function git_config::parser::parse_from_bytes [−][src]
Expand description
Attempt to zero-copy parse the provided bytes. 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.