Trait alloc::slice::Join

source ·
pub trait Join<Separator> {
    type Output;

    // Required method
    fn join(slice: &Self, sep: Separator) -> Self::Output;
}
🔬This is a nightly-only experimental API. (slice_concat_trait #27747)
Expand description

[T]::join 的辅助 trait

Required Associated Types§

source

type Output

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

串联后的结果类型

Required Methods§

source

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

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

[T]::join 的实现

Implementors§

source§

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

source§

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

§

type Output = Vec<T, Global>

source§

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

§

type Output = Vec<T, Global>