pub struct MutableListArray<O, M> where
O: Offset,
M: MutableArray, { /* private fields */ }
Expand description
The mutable version of ListArray
.
Implementations
sourceimpl<O, M> MutableListArray<O, M> where
O: Offset,
M: MutableArray + Default,
impl<O, M> MutableListArray<O, M> where
O: Offset,
M: MutableArray + Default,
sourcepub fn new() -> MutableListArray<O, M>
pub fn new() -> MutableListArray<O, M>
Creates a new empty MutableListArray
.
sourcepub fn with_capacity(capacity: usize) -> MutableListArray<O, M>
pub fn with_capacity(capacity: usize) -> MutableListArray<O, M>
Creates a new MutableListArray
with a capacity.
sourceimpl<O, M> MutableListArray<O, M> where
O: Offset,
M: MutableArray,
impl<O, M> MutableListArray<O, M> where
O: Offset,
M: MutableArray,
sourcepub fn new_from(
values: M,
data_type: DataType,
capacity: usize
) -> MutableListArray<O, M>
pub fn new_from(
values: M,
data_type: DataType,
capacity: usize
) -> MutableListArray<O, M>
Creates a new MutableListArray
from a MutableArray
and capacity.
sourcepub fn new_with_field(
values: M,
name: &str,
nullable: bool
) -> MutableListArray<O, M>
pub fn new_with_field(
values: M,
name: &str,
nullable: bool
) -> MutableListArray<O, M>
Creates a new MutableListArray
from a MutableArray
.
sourcepub fn new_with_capacity(values: M, capacity: usize) -> MutableListArray<O, M>
pub fn new_with_capacity(values: M, capacity: usize) -> MutableListArray<O, M>
Creates a new MutableListArray
from a MutableArray
and capacity.
sourcepub fn try_push_valid(&mut self) -> Result<(), ArrowError>
pub fn try_push_valid(&mut self) -> Result<(), ArrowError>
Needs to be called when a valid value was extended to this array.
This is a relatively low level function, prefer try_push
when you can.
sourcepub fn mut_values(&mut self) -> &mut M
pub fn mut_values(&mut self) -> &mut M
The values
sourcepub fn offsets(&self) -> &Vec<O, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
pub fn offsets(&self) -> &Vec<O, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
The offseta
sourcepub fn shrink_to_fit(&mut self)
pub fn shrink_to_fit(&mut self)
Shrinks the capacity of the MutableListArray
to fit its current length.
Trait Implementations
sourceimpl<O, M> Debug for MutableListArray<O, M> where
O: Debug + Offset,
M: Debug + MutableArray,
impl<O, M> Debug for MutableListArray<O, M> where
O: Debug + Offset,
M: Debug + MutableArray,
sourceimpl<O, M> Default for MutableListArray<O, M> where
O: Offset,
M: MutableArray + Default,
impl<O, M> Default for MutableListArray<O, M> where
O: Offset,
M: MutableArray + Default,
sourcefn default() -> MutableListArray<O, M>
fn default() -> MutableListArray<O, M>
Returns the “default value” for a type. Read more
sourceimpl<O, M> From<MutableListArray<O, M>> for ListArray<O> where
O: Offset,
M: MutableArray,
impl<O, M> From<MutableListArray<O, M>> for ListArray<O> where
O: Offset,
M: MutableArray,
sourcefn from(other: MutableListArray<O, M>) -> ListArray<O>
fn from(other: MutableListArray<O, M>) -> ListArray<O>
Performs the conversion.
sourceimpl<O, M> MutableArray for MutableListArray<O, M> where
O: Offset,
M: 'static + MutableArray + Default,
impl<O, M> MutableArray for MutableListArray<O, M> where
O: Offset,
M: 'static + MutableArray + Default,
sourcefn validity(&self) -> Option<&MutableBitmap>
fn validity(&self) -> Option<&MutableBitmap>
The optional validity of the array.
sourcefn as_box(&mut self) -> Box<dyn Array + 'static, Global>
fn as_box(&mut self) -> Box<dyn Array + 'static, Global>
Convert itself to an (immutable) [‘Array’].
sourcefn as_arc(&mut self) -> Arc<dyn Array + 'static>
fn as_arc(&mut self) -> Arc<dyn Array + 'static>
Convert itself to an (immutable) atomically reference counted Array
.
sourcefn as_mut_any(&mut self) -> &mut (dyn Any + 'static)
fn as_mut_any(&mut self) -> &mut (dyn Any + 'static)
Convert to mutable Any
, to enable dynamic casting.
sourcefn shrink_to_fit(&mut self)
fn shrink_to_fit(&mut self)
Shrink the array to fit its length.
sourceimpl<O, M, I, T> TryExtend<Option<I>> for MutableListArray<O, M> where
O: Offset,
M: MutableArray + TryExtend<Option<T>>,
I: IntoIterator<Item = Option<T>>,
impl<O, M, I, T> TryExtend<Option<I>> for MutableListArray<O, M> where
O: Offset,
M: MutableArray + TryExtend<Option<T>>,
I: IntoIterator<Item = Option<T>>,
sourcefn try_extend<II>(&mut self, iter: II) -> Result<(), ArrowError> where
II: IntoIterator<Item = Option<I>>,
fn try_extend<II>(&mut self, iter: II) -> Result<(), ArrowError> where
II: IntoIterator<Item = Option<I>>,
Fallible version of Extend::extend
.
sourceimpl<O, M, I, T> TryPush<Option<I>> for MutableListArray<O, M> where
O: Offset,
M: MutableArray + TryExtend<Option<T>>,
I: IntoIterator<Item = Option<T>>,
impl<O, M, I, T> TryPush<Option<I>> for MutableListArray<O, M> where
O: Offset,
M: MutableArray + TryExtend<Option<T>>,
I: IntoIterator<Item = Option<T>>,
Auto Trait Implementations
impl<O, M> RefUnwindSafe for MutableListArray<O, M> where
M: RefUnwindSafe,
O: RefUnwindSafe,
impl<O, M> Send for MutableListArray<O, M>
impl<O, M> Sync for MutableListArray<O, M>
impl<O, M> Unpin for MutableListArray<O, M> where
M: Unpin,
O: Unpin,
impl<O, M> UnwindSafe for MutableListArray<O, M> where
M: UnwindSafe,
O: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more