rune::alloc::iter

Trait TryJoin

Source
pub trait TryJoin<S, T, A>: Sized
where A: Allocator,
{ // 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> TryJoin<&str, T, A> for String<A>
where A: Allocator, T: AsRef<str>,

Source§

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