pub struct Arena<T> { /* private fields */ }Implementations§
Source§impl<T> Arena<T>
impl<T> Arena<T>
pub fn new() -> Self
pub fn with_capacity(capacity: usize) -> Self
pub fn insert(&mut self, item: T) -> ArenaKey
pub fn get(&self, index: &ArenaKey) -> Option<&T>
pub fn get_mut(&mut self, index: &ArenaKey) -> Option<&mut T>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Arena<T>
impl<T> RefUnwindSafe for Arena<T>where
T: RefUnwindSafe,
impl<T> Send for Arena<T>where
T: Send,
impl<T> Sync for Arena<T>where
T: Sync,
impl<T> Unpin for Arena<T>where
T: Unpin,
impl<T> UnwindSafe for Arena<T>where
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