Lines Matching refs:ListPool
86 pub struct ListPool<T: EntityRef + ReservedValue> { struct
94 impl<T: EntityRef + ReservedValue> PartialEq for ListPool<T> { argument
101 impl<T: core::hash::Hash + EntityRef + ReservedValue> core::hash::Hash for ListPool<T> { implementation
108 impl<T: EntityRef + ReservedValue> Default for ListPool<T> { implementation
138 impl<T: EntityRef + ReservedValue> ListPool<T> { implementation
277 pub fn from_slice(slice: &[T], pool: &mut ListPool<T>) -> Self { in from_slice()
301 pub fn len(&self, pool: &ListPool<T>) -> usize { in len()
307 pub fn is_valid(&self, pool: &ListPool<T>) -> bool { in is_valid()
313 pub fn as_slice<'a>(&self, pool: &'a ListPool<T>) -> &'a [T] { in as_slice()
322 pub fn get(&self, index: usize, pool: &ListPool<T>) -> Option<T> { in get()
327 pub fn first(&self, pool: &ListPool<T>) -> Option<T> { in first()
336 pub fn as_mut_slice<'a>(&'a mut self, pool: &'a mut ListPool<T>) -> &'a mut [T] { in as_mut_slice()
345 pub fn get_mut<'a>(&'a mut self, index: usize, pool: &'a mut ListPool<T>) -> Option<&'a mut T> { in get_mut()
350 pub fn deep_clone(&self, pool: &mut ListPool<T>) -> Self { in deep_clone()
370 pub fn clear(&mut self, pool: &mut ListPool<T>) { in clear()
389 pub fn push(&mut self, element: T, pool: &mut ListPool<T>) -> usize { in push()
423 fn grow<'a>(&'a mut self, count: usize, pool: &'a mut ListPool<T>) -> &'a mut [T] { in grow()
456 pub fn from_iter<I>(elements: I, pool: &mut ListPool<T>) -> Self in from_iter()
466 pub fn extend<I>(&mut self, elements: I, pool: &mut ListPool<T>) in extend()
494 pool: &mut ListPool<T>, in copy_from()
530 pub fn insert(&mut self, index: usize, element: T, pool: &mut ListPool<T>) { in insert()
548 fn remove_last(&mut self, len: usize, pool: &mut ListPool<T>) { in remove_last()
568 pub fn remove(&mut self, index: usize, pool: &mut ListPool<T>) { in remove()
586 pub fn swap_remove(&mut self, index: usize, pool: &mut ListPool<T>) { in swap_remove()
600 pub fn truncate(&mut self, new_len: usize, pool: &mut ListPool<T>) { in truncate()
633 pub fn grow_at(&mut self, index: usize, count: usize, pool: &mut ListPool<T>) { in grow_at()
670 let mut pool = ListPool::<Inst>::new(); in block_allocator()
696 let pool = &mut ListPool::<Inst>::new(); in empty_list()
719 let pool = &mut ListPool::<Inst>::new(); in from_slice()
738 let pool = &mut ListPool::<Inst>::new(); in push()
799 let pool = &mut ListPool::<Inst>::new(); in insert_remove()
835 let pool = &mut ListPool::<Inst>::new(); in growing()
872 let pool = &mut ListPool::<Inst>::new(); in deep_clone()
891 let pool = &mut ListPool::<Inst>::new(); in truncate()
912 let pool = &mut ListPool::<Inst>::new(); in copy_from()
932 let pool = &mut ListPool::<Inst>::new(); in copy_from_self()