Trait rune::alloc::prelude::TryFromIteratorIn
source · pub trait TryFromIteratorIn<T, A>: Sizedwhere
A: Allocator,{
// Required method
fn try_from_iter_in<I>(iter: I, alloc: A) -> Result<Self, Error>
where I: IntoIterator<Item = T>;
}
Expand description
Conversion from an Iterator
within a custom allocator A
.
By implementing TryFromIteratorIn
for a type, you define how it will be
created from an iterator. This is common for types which describe a
collection of some kind.
Required Methods§
sourcefn try_from_iter_in<I>(iter: I, alloc: A) -> Result<Self, Error>where
I: IntoIterator<Item = T>,
fn try_from_iter_in<I>(iter: I, alloc: A) -> Result<Self, Error>where
I: IntoIterator<Item = T>,
Creates a value from an iterator within an allocator.
Object Safety§
This trait is not object safe.