Struct arrow2::array::growable::GrowablePrimitive
source · pub struct GrowablePrimitive<'a, T: NativeType> { /* private fields */ }
Expand description
Concrete Growable
for the PrimitiveArray
.
Implementations§
source§impl<'a, T: NativeType> GrowablePrimitive<'a, T>
impl<'a, T: NativeType> GrowablePrimitive<'a, T>
sourcepub fn new(
arrays: Vec<&'a PrimitiveArray<T>>,
use_validity: bool,
capacity: usize
) -> Self
pub fn new( arrays: Vec<&'a PrimitiveArray<T>>, use_validity: bool, capacity: usize ) -> Self
Creates a new GrowablePrimitive
bound to arrays
with a pre-allocated capacity
.
§Panics
If arrays
is empty.
Trait Implementations§
source§impl<'a, T: NativeType> From<GrowablePrimitive<'a, T>> for PrimitiveArray<T>
impl<'a, T: NativeType> From<GrowablePrimitive<'a, T>> for PrimitiveArray<T>
source§fn from(val: GrowablePrimitive<'a, T>) -> Self
fn from(val: GrowablePrimitive<'a, T>) -> Self
Converts to this type from the input type.
source§impl<'a, T: NativeType> Growable<'a> for GrowablePrimitive<'a, T>
impl<'a, T: NativeType> Growable<'a> for GrowablePrimitive<'a, T>
source§fn extend_validity(&mut self, additional: usize)
fn extend_validity(&mut self, additional: usize)
Extends this
Growable
with null elements, disregarding the bound arraysAuto Trait Implementations§
impl<'a, T> Freeze for GrowablePrimitive<'a, T>
impl<'a, T> !RefUnwindSafe for GrowablePrimitive<'a, T>
impl<'a, T> !Send for GrowablePrimitive<'a, T>
impl<'a, T> !Sync for GrowablePrimitive<'a, T>
impl<'a, T> Unpin for GrowablePrimitive<'a, T>where
T: Unpin,
impl<'a, T> !UnwindSafe for GrowablePrimitive<'a, T>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more