Struct rerun::external::re_entity_db::external::re_data_store::external::arrow2::array::MutableFixedSizeListArray
source · pub struct MutableFixedSizeListArray<M>where
M: MutableArray,{ /* private fields */ }
Expand description
The mutable version of FixedSizeListArray
.
Implementations§
source§impl<M> MutableFixedSizeListArray<M>where
M: MutableArray,
impl<M> MutableFixedSizeListArray<M>where
M: MutableArray,
sourcepub fn new(values: M, size: usize) -> MutableFixedSizeListArray<M>
pub fn new(values: M, size: usize) -> MutableFixedSizeListArray<M>
Creates a new MutableFixedSizeListArray
from a MutableArray
and size.
sourcepub fn new_with_field(
values: M,
name: &str,
nullable: bool,
size: usize
) -> MutableFixedSizeListArray<M>
pub fn new_with_field( values: M, name: &str, nullable: bool, size: usize ) -> MutableFixedSizeListArray<M>
Creates a new MutableFixedSizeListArray
from a MutableArray
and size.
sourcepub fn new_from(
values: M,
data_type: DataType,
size: usize
) -> MutableFixedSizeListArray<M>
pub fn new_from( values: M, data_type: DataType, size: usize ) -> MutableFixedSizeListArray<M>
Creates a new MutableFixedSizeListArray
from a MutableArray
, DataType
and size.
sourcepub const fn size(&self) -> usize
pub const fn size(&self) -> usize
Returns the size (number of elements per slot) of this FixedSizeListArray
.
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<(), Error>
pub fn try_push_valid(&mut self) -> Result<(), Error>
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 push_valid(&mut self)
pub fn push_valid(&mut self)
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§
source§impl<M> Clone for MutableFixedSizeListArray<M>where
M: Clone + MutableArray,
impl<M> Clone for MutableFixedSizeListArray<M>where
M: Clone + MutableArray,
source§fn clone(&self) -> MutableFixedSizeListArray<M>
fn clone(&self) -> MutableFixedSizeListArray<M>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl<M> Debug for MutableFixedSizeListArray<M>where
M: Debug + MutableArray,
impl<M> Debug for MutableFixedSizeListArray<M>where
M: Debug + MutableArray,
source§impl<M> From<MutableFixedSizeListArray<M>> for FixedSizeListArraywhere
M: MutableArray,
impl<M> From<MutableFixedSizeListArray<M>> for FixedSizeListArraywhere
M: MutableArray,
source§fn from(other: MutableFixedSizeListArray<M>) -> FixedSizeListArray
fn from(other: MutableFixedSizeListArray<M>) -> FixedSizeListArray
source§impl<M> MutableArray for MutableFixedSizeListArray<M>where
M: MutableArray + 'static,
impl<M> MutableArray for MutableFixedSizeListArray<M>where
M: MutableArray + 'static,
source§fn validity(&self) -> Option<&MutableBitmap>
fn validity(&self) -> Option<&MutableBitmap>
source§fn as_arc(&mut self) -> Arc<dyn Array>
fn as_arc(&mut self) -> Arc<dyn Array>
Array
.source§fn as_mut_any(&mut self) -> &mut (dyn Any + 'static)
fn as_mut_any(&mut self) -> &mut (dyn Any + 'static)
Any
, to enable dynamic casting.source§fn shrink_to_fit(&mut self)
fn shrink_to_fit(&mut self)
source§impl<M, I, T> PushUnchecked<Option<I>> for MutableFixedSizeListArray<M>
impl<M, I, T> PushUnchecked<Option<I>> for MutableFixedSizeListArray<M>
source§unsafe fn push_unchecked(&mut self, item: Option<I>)
unsafe fn push_unchecked(&mut self, item: Option<I>)
§Safety
The caller must ensure that the I
iterates exactly over size
items, where size
is the fixed size width.
source§impl<M, I, T> TryExtend<Option<I>> for MutableFixedSizeListArray<M>
impl<M, I, T> TryExtend<Option<I>> for MutableFixedSizeListArray<M>
source§fn try_extend<II>(&mut self, iter: II) -> Result<(), Error>where
II: IntoIterator<Item = Option<I>>,
fn try_extend<II>(&mut self, iter: II) -> Result<(), Error>where
II: IntoIterator<Item = Option<I>>,
Extend::extend
.source§impl<M> TryExtendFromSelf for MutableFixedSizeListArray<M>where
M: MutableArray + TryExtendFromSelf,
impl<M> TryExtendFromSelf for MutableFixedSizeListArray<M>where
M: MutableArray + TryExtendFromSelf,
source§fn try_extend_from_self(
&mut self,
other: &MutableFixedSizeListArray<M>
) -> Result<(), Error>
fn try_extend_from_self( &mut self, other: &MutableFixedSizeListArray<M> ) -> Result<(), Error>
other
, failing only on overflow.Auto Trait Implementations§
impl<M> Freeze for MutableFixedSizeListArray<M>where
M: Freeze,
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§
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
source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.