[][src]Trait std::slice::SliceConcat

pub trait SliceConcat<Separator> where
    Separator: ?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> SliceConcat<str> for S where
    S: Borrow<str>, 
[src]

type Output = String

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

impl<T, V> SliceConcat<T> for V where
    T: Clone,
    V: Borrow<[T]>, 
[src]

type Output = Vec<T>

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