# Trait alloc::slice::Join

source · [−]

    pub trait Join<Separator> {
        type Output;
        fn join(slice: &Self, sep: Separator) -> Self::Output;
    }

🔬 This is a nightly-only experimental API. (`slice_concat_trait` #27747)
Expand description

Helper trait for `[T]::join`

## Associated Types

source

#### type Output

🔬 This is a nightly-only experimental API. (`slice_concat_trait` #27747)

The resulting type after concatenation

## Required methods

source

#### fn join(slice: &Self, sep: Separator) -> Self::Output

🔬 This is a nightly-only experimental API. (`slice_concat_trait` #27747)

Implementation of `[T]::join`

## Implementations on Foreign Types

source

### impl<T: Clone, V: Borrow<[T]>> Join<&'_ T> for [V]

#### type Output = Vec<T>

🔬 This is a nightly-only experimental API. (`slice_concat_trait` #27747)
source

#### fn join(slice: &Self, sep: &T) -> Vec<T>

🔬 This is a nightly-only experimental API. (`slice_concat_trait` #27747)
source

### impl<T: Clone, V: Borrow<[T]>> Join<&'_ [T]> for [V]

#### type Output = Vec<T>

🔬 This is a nightly-only experimental API. (`slice_concat_trait` #27747)
source

#### fn join(slice: &Self, sep: &[T]) -> Vec<T>

🔬 This is a nightly-only experimental API. (`slice_concat_trait` #27747)
source

### impl<S: Borrow<str>> Join<&'_ str> for [S]

#### type Output = String

🔬 This is a nightly-only experimental API. (`slice_concat_trait` #27747)
source

#### fn join(slice: &Self, sep: &str) -> String

🔬 This is a nightly-only experimental API. (`slice_concat_trait` #27747)

## Implementors