pub trait Growable<'a> {
// Required methods
fn extend(&mut self, index: usize, start: usize, len: usize);
fn extend_validity(&mut self, additional: usize);
fn len(&self) -> usize;
fn as_box(&mut self) -> Box<dyn Array>;
// Provided method
fn as_arc(&mut self) -> Arc<dyn Array> { ... }
}
Expand description
Describes a struct that can be extended from slices of other pre-existing Array
s.
This is used in operations where a new array is built out of other arrays, such
as filter and concatenation.
Required Methods§
fn extend_validity(&mut self, additional: usize)
fn extend_validity(&mut self, additional: usize)
Extends this Growable
with null elements, disregarding the bound arrays
fn as_box(&mut self) -> Box<dyn Array>
fn as_box(&mut self) -> Box<dyn Array>
Converts this Growable
to an Box<dyn Array>
, thereby finishing the mutation.
Self will be empty after such operation
Provided Methods§
fn as_arc(&mut self) -> Arc<dyn Array>
fn as_arc(&mut self) -> Arc<dyn Array>
Converts this Growable
to an Arc<dyn Array>
, thereby finishing the mutation.
Self will be empty after such operation.