pub trait FromIteratorIn<T> {
type Alloc;
// Required method
fn from_iter_in<I>(iter: I, alloc: Self::Alloc) -> Self
where I: IntoIterator<Item = T>;
}Expand description
Construct a collection from an iterator, allocating its storage in an arena.
The arena-equivalent of FromIterator: the implementing collection decides
what allocator handle it needs via Alloc.
Required Associated Types§
Required Methods§
Sourcefn from_iter_in<I>(iter: I, alloc: Self::Alloc) -> Selfwhere
I: IntoIterator<Item = T>,
fn from_iter_in<I>(iter: I, alloc: Self::Alloc) -> Selfwhere
I: IntoIterator<Item = T>,
Builds Self from iter, allocating into alloc.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".