Lines Matching full: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
580 Self: Join<Separator>,
582 Join::join(self, sep)
597 #[deprecated(since = "1.3.0", note = "renamed to join")]
598 pub fn connect<Separator>(&self, sep: Separator) -> <Self as Join<Separator>>::Output
600 Self: Join<Separator>,
602 Join::join(self, sep)
695 /// Helper trait for [`[T]::join`](slice::join)
697 pub trait Join<Separator> {
702 /// Implementation of [`[T]::join`](slice::join)
704 fn join(slice: &Self, sep: Separator) -> Self::Output;
724 impl<T: Clone, V: Borrow<[T]>> Join<&T> for [V] {
727 fn join(slice: &Self, sep: &T) -> Vec<T> {
747 impl<T: Clone, V: Borrow<[T]>> Join<&[T]> for [V] {
750 fn join(slice: &Self, sep: &[T]) -> Vec<T> {