pub fn try_from_bstr<'a>( input: impl Into<Cow<'a, BStr>>) -> Result<Cow<'a, Path>, Utf8Error>
Similar to from_byte_slice(), but takes either borrowed or owned input.
from_byte_slice()
input
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") }