Trait polars::export::arrow::array::MutableArray    
pub trait MutableArray: Debug + Send + Sync {
    // Required methods
    fn data_type(&self) -> &DataType;
    fn len(&self) -> usize;
    fn validity(&self) -> Option<&MutableBitmap>;
    fn as_box(&mut self) -> Box<dyn Array + 'static, Global>;
    fn as_any(&self) -> &(dyn Any + 'static);
    fn as_mut_any(&mut self) -> &mut (dyn Any + 'static);
    fn push_null(&mut self);
    fn reserve(&mut self, additional: usize);
    fn shrink_to_fit(&mut self);
    // Provided methods
    fn is_empty(&self) -> bool { ... }
    fn as_arc(&mut self) -> Arc<dyn Array + 'static> { ... }
    fn is_valid(&self, index: usize) -> bool { ... }
}Expand description
A trait describing a mutable array; i.e. an array whose values can be changed.
Mutable arrays cannot be cloned but can be mutated in place,
thereby making them useful to perform numeric operations without allocations.
As in Array, concrete arrays (such as MutablePrimitiveArray) implement how they are mutated.
Required Methods§
fn validity(&self) -> Option<&MutableBitmap>
fn validity(&self) -> Option<&MutableBitmap>
The optional validity of the array.
fn 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.
fn push_null(&mut self)
fn push_null(&mut self)
Adds a new null element to the array.
fn shrink_to_fit(&mut self)
fn shrink_to_fit(&mut self)
Shrink the array to fit its length.
Provided Methods§
Trait Implementations§
§impl MutableArray for Box<dyn MutableArray + 'static, Global>
 
impl MutableArray for Box<dyn MutableArray + 'static, Global>
§fn validity(&self) -> Option<&MutableBitmap>
 
fn validity(&self) -> Option<&MutableBitmap>
The optional validity of the array.
§fn 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.§fn 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.§fn shrink_to_fit(&mut self)
 
fn shrink_to_fit(&mut self)
Shrink the array to fit its length.