Trait rune_alloc::iter::TryJoin

source ·
pub trait TryJoin<S, T, A: Allocator>: Sized {
    // Required method
    fn try_join_in<I>(iter: I, sep: S, alloc: A) -> Result<Self, Error>
       where I: IntoIterator<Item = T>;
}
Expand description

Helper trait for joining iterators.

Required Methods§

source

fn try_join_in<I>(iter: I, sep: S, alloc: A) -> Result<Self, Error>
where I: IntoIterator<Item = T>,

Try to join the given value in the given allocator.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T, A: Allocator> TryJoin<&str, T, A> for String<A>
where T: AsRef<str>,

source§

impl<T, A: Allocator> TryJoin<char, T, A> for String<A>
where T: AsRef<str>,