Struct arrow2::array::MutableFixedSizeListArray  
source · [−]pub struct MutableFixedSizeListArray<M: MutableArray> { /* private fields */ }Expand description
The mutable version of FixedSizeListArray.
Implementations
sourceimpl<M: MutableArray> MutableFixedSizeListArray<M>
 
impl<M: MutableArray> MutableFixedSizeListArray<M>
sourcepub fn new(values: M, size: usize) -> Self
 
pub fn new(values: M, size: usize) -> Self
Creates a new MutableFixedSizeListArray from a MutableArray and size.
sourcepub fn new_with_field(
    values: M, 
    name: &str, 
    nullable: bool, 
    size: usize
) -> Self
 
pub fn new_with_field(
    values: M, 
    name: &str, 
    nullable: bool, 
    size: usize
) -> Self
Creates a new MutableFixedSizeListArray from a MutableArray and size.
sourcepub fn mut_values(&mut self) -> &mut M
 
pub fn mut_values(&mut self) -> &mut M
The values as a mutable reference
sourcepub fn try_push_valid(&mut self) -> Result<()>
 
pub fn try_push_valid(&mut self) -> Result<()>
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 shrink_to_fit(&mut self)
 
pub fn shrink_to_fit(&mut self)
Shrinks the capacity of the MutableFixedSizeListArray to fit its current length.
Trait Implementations
sourceimpl<M: Debug + MutableArray> Debug for MutableFixedSizeListArray<M>
 
impl<M: Debug + MutableArray> Debug for MutableFixedSizeListArray<M>
sourceimpl<M: MutableArray> From<MutableFixedSizeListArray<M>> for FixedSizeListArray
 
impl<M: MutableArray> From<MutableFixedSizeListArray<M>> for FixedSizeListArray
sourcefn from(other: MutableFixedSizeListArray<M>) -> Self
 
fn from(other: MutableFixedSizeListArray<M>) -> Self
Performs the conversion.
sourceimpl<M: MutableArray + 'static> MutableArray for MutableFixedSizeListArray<M>
 
impl<M: MutableArray + 'static> MutableArray for MutableFixedSizeListArray<M>
sourcefn validity(&self) -> Option<&MutableBitmap>
 
fn validity(&self) -> Option<&MutableBitmap>
The optional validity of the array.
sourcefn as_arc(&mut self) -> Arc<dyn Array>
 
fn as_arc(&mut self) -> Arc<dyn Array>
Convert itself to an (immutable) atomically reference counted Array.
sourcefn as_mut_any(&mut self) -> &mut dyn Any
 
fn as_mut_any(&mut self) -> &mut dyn Any
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<M, I, T> TryExtend<Option<I>> for MutableFixedSizeListArray<M> where
    M: MutableArray + TryExtend<Option<T>>,
    I: IntoIterator<Item = Option<T>>, 
 
impl<M, I, T> TryExtend<Option<I>> for MutableFixedSizeListArray<M> where
    M: MutableArray + TryExtend<Option<T>>,
    I: IntoIterator<Item = Option<T>>, 
sourcefn try_extend<II: IntoIterator<Item = Option<I>>>(
    &mut self, 
    iter: II
) -> Result<()>
 
fn try_extend<II: IntoIterator<Item = Option<I>>>(
    &mut self, 
    iter: II
) -> Result<()>
Fallible version of Extend::extend.
sourceimpl<M, I, T> TryPush<Option<I>> for MutableFixedSizeListArray<M> where
    M: MutableArray + TryExtend<Option<T>>,
    I: IntoIterator<Item = Option<T>>, 
 
impl<M, I, T> TryPush<Option<I>> for MutableFixedSizeListArray<M> where
    M: MutableArray + TryExtend<Option<T>>,
    I: IntoIterator<Item = Option<T>>, 
Auto Trait Implementations
impl<M> RefUnwindSafe for MutableFixedSizeListArray<M> where
    M: RefUnwindSafe, 
impl<M> Send for MutableFixedSizeListArray<M>
impl<M> Sync for MutableFixedSizeListArray<M>
impl<M> Unpin for MutableFixedSizeListArray<M> where
    M: Unpin, 
impl<M> UnwindSafe for MutableFixedSizeListArray<M> where
    M: 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