Get a single element from the list.
(&self, index: usize, pool: &ListPool<T>)
| 320 | |
| 321 | /// Get a single element from the list. |
| 322 | pub fn get(&self, index: usize, pool: &ListPool<T>) -> Option<T> { |
| 323 | self.as_slice(pool).get(index).cloned() |
| 324 | } |
| 325 | |
| 326 | /// Get the first element from the list. |
| 327 | pub fn first(&self, pool: &ListPool<T>) -> Option<T> { |