Struct pyo3::freelist::FreeList [−][src]
pub struct FreeList<T> { /* fields omitted */ }
Methods
impl<T> FreeList<T>
[src]
impl<T> FreeList<T>
pub fn with_capacity(capacity: usize) -> FreeList<T>
[src]
pub fn with_capacity(capacity: usize) -> FreeList<T>
Create new FreeList
instance with specified capacity
pub fn pop(&mut self) -> Option<T>
[src]
pub fn pop(&mut self) -> Option<T>
Pop first non empty item
pub fn insert(&mut self, val: T) -> Option<T>
[src]
pub fn insert(&mut self, val: T) -> Option<T>
Insert a value into the list