pub fn join_path_syms(
path: impl IntoIterator<Item = impl Borrow<Symbol>>,
) -> String
Expand description
Joins multiple symbols with “::” into a path, e.g. “a::b::c”. If the first
segment is kw::PathRoot
it will be printed as empty, e.g. “::b::c”.
The generics on the path
argument mean it can accept many forms, such as:
&[Symbol]
Vec<Symbol>
Vec<&Symbol>
impl Iterator<Item = Symbol>
impl Iterator<Item = &Symbol>
Panics if path
is empty or a segment after the first is kw::PathRoot
.