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

    pub trait SliceConcat<Separator: ?Sized>: Sized {
        type Output;
        fn concat(slice: &[Self]) -> Self::Output;
        fn join(slice: &[Self], sep: &Separator) -> Self::Output;
    }

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

Helper trait for `[T]::concat` and `[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 concat(slice: &[Self]) -> Self::Output`

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

Implementation of `[T]::concat`

### `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>> SliceConcat<str> for S`[src]

#### `type Output = String`

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

#### `fn concat(slice: &[Self]) -> String`[src]

🔬 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]>> SliceConcat<T> for V`[src]

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

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

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

🔬 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...

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g., `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g., `vec -> usize` or `* -> vec`)

Search multiple things at once by splitting your query with comma (e.g., `str,u8` or `String,struct:Vec,test`)