MCPcopy Create free account
hub / github.com/apache/arrow-rs / slice

Method slice

arrow-array/src/array/boolean_array.rs:142–147  ·  view source on GitHub ↗

Returns a zero-copy slice of this array with the indicated offset and length.

(&self, offset: usize, length: usize)

Source from the content-addressed store, hash-verified

140
141 /// Returns a zero-copy slice of this array with the indicated offset and length.
142 pub fn slice(&self, offset: usize, length: usize) -> Self {
143 Self {
144 values: self.values.slice(offset, length),
145 nulls: self.nulls.as_ref().map(|n| n.slice(offset, length)),
146 }
147 }
148
149 /// Returns a new boolean array builder
150 pub fn builder(capacity: usize) -> BooleanBuilder {

Calls 1

as_refMethod · 0.45