pub fn join_path<'path>(prefix: &str, path: &'path str) -> Cow<'path, str>
Expand description
Concatenates two path strings.
If prefix
is empty, returns path
. Otherwise, joins prefix
and path
together with ::
as a separator. If prefix
ends with ::
then no additional ::
will be added.