Struct cretonne_entity::ListPool [−][src]
pub struct ListPool<T: EntityRef> { /* fields omitted */ }
A memory pool for storing lists of T
.
Methods
impl<T: EntityRef> ListPool<T>
[src]
impl<T: EntityRef> ListPool<T>
pub fn new() -> Self
[src]
pub fn new() -> Self
Create a new list pool.
pub fn clear(&mut self)
[src]
pub fn clear(&mut self)
Clear the pool, forgetting about all lists that use it.
This invalidates any existing entity lists that used this pool to allocate memory.
The pool's memory is not released to the operating system, but kept around for faster allocation in the future.
Trait Implementations
impl<T: Clone + EntityRef> Clone for ListPool<T>
[src]
impl<T: Clone + EntityRef> Clone for ListPool<T>
fn clone(&self) -> ListPool<T>
[src]
fn clone(&self) -> ListPool<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<T: Debug + EntityRef> Debug for ListPool<T>
[src]
impl<T: Debug + EntityRef> Debug for ListPool<T>