Struct re_arrow2::array::growable::GrowableUnion
source · pub struct GrowableUnion<'a> { /* private fields */ }Expand description
Concrete Growable for the UnionArray.
Implementations§
source§impl<'a> GrowableUnion<'a>
impl<'a> GrowableUnion<'a>
sourcepub fn new(arrays: Vec<&'a UnionArray>, capacity: usize) -> Self
pub fn new(arrays: Vec<&'a UnionArray>, capacity: usize) -> Self
Creates a new GrowableUnion bound to arrays with a pre-allocated capacity.
§Panics
Panics iff
arraysis empty.- any of the arrays has a different
Trait Implementations§
source§impl<'a> From<GrowableUnion<'a>> for UnionArray
impl<'a> From<GrowableUnion<'a>> for UnionArray
source§fn from(val: GrowableUnion<'a>) -> Self
fn from(val: GrowableUnion<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> Growable<'a> for GrowableUnion<'a>
impl<'a> Growable<'a> for GrowableUnion<'a>
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> Freeze for GrowableUnion<'a>
impl<'a> !RefUnwindSafe for GrowableUnion<'a>
impl<'a> !Send for GrowableUnion<'a>
impl<'a> !Sync for GrowableUnion<'a>
impl<'a> Unpin for GrowableUnion<'a>
impl<'a> !UnwindSafe for GrowableUnion<'a>
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