logo

Trait std::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

Required Associated Types

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

The resulting type after concatenation

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

Implementors

source

impl<S> Join<&str> for [S] where
S: Borrow<str>,

type Output = String

source

impl<S: Borrow<OsStr>> Join<&OsStr> for [S]

source

impl<T, V> Join<&[T]> for [V] where
T: Clone,
V: Borrow<[T]>,

type Output = Vec<T, Global>

source

impl<T, V> Join<&T> for [V] where
T: Clone,
V: Borrow<[T]>,

type Output = Vec<T, Global>

AltStyle によって変換されたページ (->オリジナル) /