Struct polars_arrow::array::growable::GrowableBinary
source · pub struct GrowableBinary<'a, O: Offset> { /* private fields */ }
Expand description
Concrete Growable
for the BinaryArray
.
Implementations§
source§impl<'a, O: Offset> GrowableBinary<'a, O>
impl<'a, O: Offset> GrowableBinary<'a, O>
sourcepub fn new(
arrays: Vec<&'a BinaryArray<O>>,
use_validity: bool,
capacity: usize,
) -> Self
pub fn new( arrays: Vec<&'a BinaryArray<O>>, use_validity: bool, capacity: usize, ) -> Self
Creates a new GrowableBinary
bound to arrays
with a pre-allocated capacity
.
§Panics
If arrays
is empty.
Trait Implementations§
source§impl<'a, O: Offset> From<GrowableBinary<'a, O>> for BinaryArray<O>
impl<'a, O: Offset> From<GrowableBinary<'a, O>> for BinaryArray<O>
source§fn from(val: GrowableBinary<'a, O>) -> Self
fn from(val: GrowableBinary<'a, O>) -> Self
Converts to this type from the input type.
source§impl<'a, O: Offset> Growable<'a> for GrowableBinary<'a, O>
impl<'a, O: Offset> Growable<'a> for GrowableBinary<'a, O>
source§fn extend_validity(&mut self, additional: usize)
fn extend_validity(&mut self, additional: usize)
source§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.Auto Trait Implementations§
impl<'a, O> Freeze for GrowableBinary<'a, O>
impl<'a, O> RefUnwindSafe for GrowableBinary<'a, O>
impl<'a, O> Send for GrowableBinary<'a, O>
impl<'a, O> Sync for GrowableBinary<'a, O>
impl<'a, O> Unpin for GrowableBinary<'a, O>where
O: Unpin,
impl<'a, O> UnwindSafe for GrowableBinary<'a, O>where
O: UnwindSafe,
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more