rune_alloc::iter

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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>,