Returns a zero-copy slice of this array with the indicated offset and length.
(&self, offset: usize, length: usize)
| 408 | |
| 409 | /// Returns a zero-copy slice of this array with the indicated offset and length. |
| 410 | pub fn slice(&self, offset: usize, length: usize) -> Self { |
| 411 | Self { |
| 412 | data_type: self.data_type.clone(), |
| 413 | keys: self.keys.slice(offset, length), |
| 414 | values: self.values.clone(), |
| 415 | is_ordered: self.is_ordered, |
| 416 | } |
| 417 | } |
| 418 | |
| 419 | /// Downcast this dictionary to a [`TypedDictionaryArray`] |
| 420 | /// |