pub struct GrowableBoolean<'a> { /* private fields */ }
Expand description
Concrete Growable
for the BooleanArray
.
Implementations§
Source§impl<'a> GrowableBoolean<'a>
impl<'a> GrowableBoolean<'a>
Sourcepub fn new(
arrays: Vec<&'a BooleanArray>,
use_validity: bool,
capacity: usize,
) -> Self
pub fn new( arrays: Vec<&'a BooleanArray>, use_validity: bool, capacity: usize, ) -> Self
Creates a new GrowableBoolean
bound to arrays
with a pre-allocated capacity
.
§Panics
If arrays
is empty.
Trait Implementations§
Source§impl<'a> From<GrowableBoolean<'a>> for BooleanArray
impl<'a> From<GrowableBoolean<'a>> for BooleanArray
Source§fn from(val: GrowableBoolean<'a>) -> Self
fn from(val: GrowableBoolean<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> Growable<'a> for GrowableBoolean<'a>
impl<'a> Growable<'a> for GrowableBoolean<'a>
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> Freeze for GrowableBoolean<'a>
impl<'a> RefUnwindSafe for GrowableBoolean<'a>
impl<'a> Send for GrowableBoolean<'a>
impl<'a> Sync for GrowableBoolean<'a>
impl<'a> Unpin for GrowableBoolean<'a>
impl<'a> UnwindSafe for GrowableBoolean<'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