Lines Matching defs:join
572 /// assert_eq!(["hello", "world"].join(" "), "hello world");
573 /// assert_eq!([[1, 2], [3, 4]].join(&0), [1, 2, 0, 3, 4]);
574 /// assert_eq!([[1, 2], [3, 4]].join(&[0, 0][..]), [1, 2, 0, 0, 3, 4]);
578 pub fn join<Separator>(&self, sep: Separator) -> <Self as Join<Separator>>::Output
582 Join::join(self, sep)
597 #[deprecated(since = "1.3.0", note = "renamed to join")]
602 Join::join(self, sep)
695 /// Helper trait for [`[T]::join`](slice::join)
702 /// Implementation of [`[T]::join`](slice::join)
704 fn join(slice: &Self, sep: Separator) -> Self::Output;
727 fn join(slice: &Self, sep: &T) -> Vec<T> {
750 fn join(slice: &Self, sep: &[T]) -> Vec<T> {