rune_alloc/iter/
join.rs

1use crate::alloc::Allocator;
2use crate::error::Error;
3
4/// Helper trait for joining iterators.
5pub trait TryJoin<S, T, A>
6where
7    Self: Sized,
8    A: Allocator,
9{
10    /// Try to join the given value in the given allocator.
11    fn try_join_in<I>(iter: I, sep: S, alloc: A) -> Result<Self, Error>
12    where
13        I: IntoIterator<Item = T>;
14}