Function git_path::try_from_bstr

source ·
pub fn try_from_bstr<'a>(
    input: impl Into<Cow<'a, BStr>>
) -> Result<Cow<'a, Path>, Utf8Error>
Expand description

Similar to from_byte_slice(), but takes either borrowed or owned input.

Examples found in repository?
src/convert.rs (line 117)
116
117
118
pub fn from_bstr<'a>(input: impl Into<Cow<'a, BStr>>) -> Cow<'a, Path> {
    try_from_bstr(input).expect("prefix path doesn't contain ill-formed UTF-8")
}