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

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

    pub trait Join<Separator> {
        type Output;
        pub 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`[src]

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

The resulting type after concatenation

Loading content...

## Required methods

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

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

Implementation of `[T]::join`

Loading content...

## Implementors

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

#### `type Output = String`

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

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

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

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

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

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

#### `pub fn join(slice: &[V], sep: &T) -> Vec<T, Global>ⓘ

### Notable traits for Vec<u8>

`impl Write for Vec<u8>`
`[src]

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

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

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

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

#### `pub fn join(slice: &[V], sep: &[T]) -> Vec<T, Global>ⓘ

### Notable traits for Vec<u8>

`impl Write for Vec<u8>`
`[src]

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