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: Allocator>: Sized {
6 /// Try to join the given value in the given allocator.
7 fn try_join_in<I>(iter: I, sep: S, alloc: A) -> Result<Self, Error>
8 where
9 I: IntoIterator<Item = T>;
10}