pub struct MutableDictionaryArray<K, M> where
K: DictionaryKey,
M: MutableArray, { /* private fields */ }
Expand description
A mutable, strong-typed version of DictionaryArray
.
Implementations
sourceimpl<K, M> MutableDictionaryArray<K, M> where
K: DictionaryKey,
M: MutableArray + Default,
impl<K, M> MutableDictionaryArray<K, M> where
K: DictionaryKey,
M: MutableArray + Default,
sourcepub fn new() -> MutableDictionaryArray<K, M>
pub fn new() -> MutableDictionaryArray<K, M>
Creates an empty MutableDictionaryArray
.
sourceimpl<K, M> MutableDictionaryArray<K, M> where
K: DictionaryKey,
M: MutableArray,
impl<K, M> MutableDictionaryArray<K, M> where
K: DictionaryKey,
M: MutableArray,
sourcepub fn try_push_valid<T>(&mut self, value: &T) -> Result<bool, ArrowError> where
T: Hash,
pub fn try_push_valid<T>(&mut self, value: &T) -> Result<bool, ArrowError> where
T: Hash,
Returns whether the value should be pushed to the values or not
sourcepub fn mut_values(&mut self) -> &mut M
pub fn mut_values(&mut self) -> &mut M
returns a mutable reference to the inner values.
sourcepub fn into_arc(self) -> Arc<dyn Array + 'static>
pub fn into_arc(self) -> Arc<dyn Array + 'static>
converts itself into Arc<dyn Array>
sourcepub fn shrink_to_fit(&mut self)
pub fn shrink_to_fit(&mut self)
Shrinks the capacity of the MutableDictionaryArray
to fit its current length.
Trait Implementations
sourceimpl<K, M> Debug for MutableDictionaryArray<K, M> where
K: Debug + DictionaryKey,
M: Debug + MutableArray,
impl<K, M> Debug for MutableDictionaryArray<K, M> where
K: Debug + DictionaryKey,
M: Debug + MutableArray,
sourceimpl<K, M> Default for MutableDictionaryArray<K, M> where
K: DictionaryKey,
M: MutableArray + Default,
impl<K, M> Default for MutableDictionaryArray<K, M> where
K: DictionaryKey,
M: MutableArray + Default,
sourcefn default() -> MutableDictionaryArray<K, M>
fn default() -> MutableDictionaryArray<K, M>
Returns the “default value” for a type. Read more
sourceimpl<K, M> From<M> for MutableDictionaryArray<K, M> where
K: DictionaryKey,
M: MutableArray,
impl<K, M> From<M> for MutableDictionaryArray<K, M> where
K: DictionaryKey,
M: MutableArray,
sourcefn from(values: M) -> MutableDictionaryArray<K, M>
fn from(values: M) -> MutableDictionaryArray<K, M>
Performs the conversion.
sourceimpl<K, M> From<MutableDictionaryArray<K, M>> for DictionaryArray<K> where
K: DictionaryKey,
M: MutableArray,
impl<K, M> From<MutableDictionaryArray<K, M>> for DictionaryArray<K> where
K: DictionaryKey,
M: MutableArray,
sourcefn from(other: MutableDictionaryArray<K, M>) -> DictionaryArray<K>
fn from(other: MutableDictionaryArray<K, M>) -> DictionaryArray<K>
Performs the conversion.
sourceimpl<K, M> MutableArray for MutableDictionaryArray<K, M> where
K: DictionaryKey,
M: 'static + MutableArray,
impl<K, M> MutableArray for MutableDictionaryArray<K, M> where
K: DictionaryKey,
M: 'static + MutableArray,
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<K, M, T> TryExtend<Option<T>> for MutableDictionaryArray<K, M> where
T: Hash,
K: DictionaryKey,
M: MutableArray + TryExtend<Option<T>>,
impl<K, M, T> TryExtend<Option<T>> for MutableDictionaryArray<K, M> where
T: Hash,
K: DictionaryKey,
M: MutableArray + TryExtend<Option<T>>,
sourcefn try_extend<II>(&mut self, iter: II) -> Result<(), ArrowError> where
II: IntoIterator<Item = Option<T>>,
fn try_extend<II>(&mut self, iter: II) -> Result<(), ArrowError> where
II: IntoIterator<Item = Option<T>>,
Fallible version of Extend::extend
.
Auto Trait Implementations
impl<K, M> RefUnwindSafe for MutableDictionaryArray<K, M> where
K: RefUnwindSafe,
M: RefUnwindSafe,
impl<K, M> Send for MutableDictionaryArray<K, M>
impl<K, M> Sync for MutableDictionaryArray<K, M>
impl<K, M> Unpin for MutableDictionaryArray<K, M> where
K: Unpin,
M: Unpin,
impl<K, M> UnwindSafe for MutableDictionaryArray<K, M> where
K: UnwindSafe,
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