Returns true if all data within this array is ASCII
(&self)
| 286 | |
| 287 | /// Returns true if all data within this array is ASCII |
| 288 | pub fn is_ascii(&self) -> bool { |
| 289 | let offsets = self.value_offsets(); |
| 290 | let start = offsets.first().unwrap(); |
| 291 | let end = offsets.last().unwrap(); |
| 292 | self.value_data()[start.as_usize()..end.as_usize()].is_ascii() |
| 293 | } |
| 294 | |
| 295 | /// Returns the offset values in the offsets buffer |
| 296 | #[inline] |
no test coverage detected