Struct uell::Uell [−][src]
pub struct Uell<'b, T> { /* fields omitted */ }
Expand description
An unrolled exponential linked list.
An append-only container, that can be useful in case reallocating memory can be inefficient.
It is backed by a bumpalo allocator where reallocating memory means wasting memory, as bumpalo cannot reuse freed memory.
Implementations
impl<'b, T: Copy + Default> Uell<'b, T>
[src]
impl<'b, T: Copy + Default> Uell<'b, T>
[src]pub fn new_in(bump: &'b Bump) -> Uell<'_, T>
[src]
pub fn new_in(bump: &'b Bump) -> Uell<'_, T>
[src]Constructs a new, empty Uell<'bump, T>
.
The unrolled exponential linked list will not allocate until elements are pushed onto it.
pub fn from_iter_in<I>(iter: I, bump: &'b Bump) -> Uell<'_, T> where
I: IntoIterator<Item = T>,
[src]
pub fn from_iter_in<I>(iter: I, bump: &'b Bump) -> Uell<'_, T> where
I: IntoIterator<Item = T>,
[src]Construct a new Uell<'bump, T>
from the given iterator’s items.
Trait Implementations
Auto Trait Implementations
impl<'b, T> !RefUnwindSafe for Uell<'b, T>
impl<'b, T> !Send for Uell<'b, T>
impl<'b, T> !Sync for Uell<'b, T>
impl<'b, T> Unpin for Uell<'b, T> where
T: Unpin,
T: Unpin,