pub trait Growable<'a> {
    fn extend(&mut self, index: usize, start: usize, len: usize);
    fn extend_validity(&mut self, additional: usize);
    fn as_box(&mut self) -> Box<dyn Array>;

    fn as_arc(&mut self) -> Arc<dyn Array> { ... }
}
Expand description

Describes a struct that can be extended from slices of other pre-existing Arrays. This is used in operations where a new array is built out of other arrays, such as filter and concatenation.

Required Methods

Extends this Growable with elements from the bounded Array at index index from a slice starting at start and length len.

Panic

This function panics if the range is out of bounds, i.e. if start + len >= array.len().

Extends this Growable with null elements, disregarding the bound arrays

Converts this Growable to an Box<dyn Array>, thereby finishing the mutation. Self will be empty after such operation

Provided Methods

Converts this Growable to an Arc<dyn Array>, thereby finishing the mutation. Self will be empty after such operation.

Implementors