(&self)
| 215 | /// Gets the total number of items. |
| 216 | #[inline] |
| 217 | pub fn item_count(&self) -> usize { |
| 218 | (self.0.len as usize) / (self.0.itemsize as usize) |
| 219 | } |
| 220 | |
| 221 | /// `item_size() * item_count()`. |
| 222 | /// For contiguous arrays, this is the length of the underlying memory block. |
no outgoing calls
no test coverage detected