pub fn join<'a, I: IntoIterator<Item = &'a str>>(words: I) -> String👎Deprecated since 1.3.0: replace with
try_join(words)? to avoid nul byte dangerExpand description
Convenience function that consumes an iterable of words and turns it into a single string, quoting words when necessary. Consecutive words will be separated by a single space.
Uses default settings except that nul bytes are passed through, which may be dangerous, leading to this function being deprecated.
Equivalent to Quoter::new().allow_nul(true).join(words).unwrap().
(That configuration never returns Err, so this function does not panic.)
The bytes equivalent is bytes::join.