Function git_config::parser::parse_from_bytes_owned[][src]

pub fn parse_from_bytes_owned(
    input: &[u8]
) -> Result<Parser<'static>, Error<'static>>
Expand description

Parses the provided bytes, returning an Parser that contains allocated and owned events. This is similar to parse_from_bytes, but performance is degraded as it requires allocation for every event. However, this permits the reference bytes to be dropped, allowing the parser to be passed around without lifetime worries.

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.