alloc::slice::Join - Rust
Description: API documentation for the Rust `Join` trait in crate `alloc`.
Keywords: rust, rustlang, rust-lang, Join

# [−][src]Trait alloc::slice::Join

    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)

Helper trait for `[T]::join`

## Associated Types

### `type Output`

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

The resulting type after concatenation

Loading content...

## Required methods

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

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

Implementation of `[T]::join`

Loading content...

## Implementors

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

#### `type Output = String`

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

#### `fn join(slice: &Self, sep: &str) -> String`[src]

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

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

#### `type Output = Vec<T>`

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

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

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

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

#### `type Output = Vec<T>`

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

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

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