pub struct Arena<Idx, T> { /* private fields */ }
Expand description
An arena allocator with a given index and entity type.
For performance reasons the arena cannot deallocate single entities.
Implementations§
Source§impl<Idx, T> Arena<Idx, T>
impl<Idx, T> Arena<Idx, T>
Source§impl<Idx, T> Arena<Idx, T>where
Idx: ArenaIndex,
impl<Idx, T> Arena<Idx, T>where
Idx: ArenaIndex,
Trait Implementations§
Source§impl<Idx, T> FromIterator<T> for Arena<Idx, T>
impl<Idx, T> FromIterator<T> for Arena<Idx, T>
Source§fn from_iter<I>(iter: I) -> Selfwhere
I: IntoIterator<Item = T>,
fn from_iter<I>(iter: I) -> Selfwhere
I: IntoIterator<Item = T>,
Creates a value from an iterator. Read more
Source§impl<Idx, T> Index<Idx> for Arena<Idx, T>where
Idx: ArenaIndex,
impl<Idx, T> Index<Idx> for Arena<Idx, T>where
Idx: ArenaIndex,
Source§impl<Idx, T> IndexMut<Idx> for Arena<Idx, T>where
Idx: ArenaIndex,
impl<Idx, T> IndexMut<Idx> for Arena<Idx, T>where
Idx: ArenaIndex,
Source§impl<'a, Idx, T> IntoIterator for &'a Arena<Idx, T>where
Idx: ArenaIndex,
impl<'a, Idx, T> IntoIterator for &'a Arena<Idx, T>where
Idx: ArenaIndex,
Source§impl<'a, Idx, T> IntoIterator for &'a mut Arena<Idx, T>where
Idx: ArenaIndex,
impl<'a, Idx, T> IntoIterator for &'a mut Arena<Idx, T>where
Idx: ArenaIndex,
impl<Idx, T> Eq for Arena<Idx, T>where
T: Eq,
impl<Idx, T> Send for Arena<Idx, T>where
T: Send,
Arena
does not store Idx
therefore it is Send
without its bound.
impl<Idx, T> Sync for Arena<Idx, T>where
T: Send,
Arena
does not store Idx
therefore it is Sync
without its bound.
Auto Trait Implementations§
impl<Idx, T> Freeze for Arena<Idx, T>
impl<Idx, T> RefUnwindSafe for Arena<Idx, T>where
Idx: RefUnwindSafe,
T: RefUnwindSafe,
impl<Idx, T> Unpin for Arena<Idx, T>
impl<Idx, T> UnwindSafe for Arena<Idx, T>where
Idx: UnwindSafe,
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more