gix_url

Function parse

Source
pub fn parse(input: &BStr) -> Result<Url, Error>
Expand description

Parse the given bytes as a git url.

§Note

We cannot and should never have to deal with UTF-16 encoded windows strings, so bytes input is acceptable. For file-paths, we don’t expect UTF8 encoding either.