Lines Matching full:join
637 /// assert_eq!(["hello", "world"].join(" "), "hello world");
638 /// assert_eq!([[1, 2], [3, 4]].join(&0), [1, 2, 0, 3, 4]);
639 /// assert_eq!([[1, 2], [3, 4]].join(&[0, 0][..]), [1, 2, 0, 0, 3, 4]);
643 pub fn join<Separator>(&self, sep: Separator) -> <Self as Join<Separator>>::Output in join() method
645 Self: Join<Separator>, in join()
647 Join::join(self, sep) in join()
662 #[deprecated(since = "1.3.0", note = "renamed to join")]
663 pub fn connect<Separator>(&self, sep: Separator) -> <Self as Join<Separator>>::Output in connect()
665 Self: Join<Separator>, in connect()
667 Join::join(self, sep) in connect()
760 /// Helper trait for [`[T]::join`](slice::join)
762 pub trait Join<Separator> { interface
767 /// Implementation of [`[T]::join`](slice::join)
769 fn join(slice: &Self, sep: Separator) -> Self::Output; in join() method
789 impl<T: Clone, V: Borrow<[T]>> Join<&T> for [V] {
792 fn join(slice: &Self, sep: &T) -> Vec<T> { in join() method
812 impl<T: Clone, V: Borrow<[T]>> Join<&[T]> for [V] {
815 fn join(slice: &Self, sep: &[T]) -> Vec<T> { in join() method