Get the number of elements in the list.
(&self, pool: &ListPool<T>)
| 299 | |
| 300 | /// Get the number of elements in the list. |
| 301 | pub fn len(&self, pool: &ListPool<T>) -> usize { |
| 302 | // Both the empty list and any invalidated old lists will return `None`. |
| 303 | pool.len_of(self).unwrap_or(0) |
| 304 | } |
| 305 | |
| 306 | /// Returns `true` if the list is valid |
| 307 | pub fn is_valid(&self, pool: &ListPool<T>) -> bool { |