pub struct GrowableDictionary<'a, K: DictionaryKey> { /* private fields */ }
Expand description
Concrete Growable
for the DictionaryArray
.
Implementation
This growable does not perform collision checks and instead concatenates
the values of each DictionaryArray
one after the other.
Implementations
sourceimpl<'a, T: DictionaryKey> GrowableDictionary<'a, T>
impl<'a, T: DictionaryKey> GrowableDictionary<'a, T>
sourcepub fn new(
arrays: &[&'a DictionaryArray<T>],
use_validity: bool,
capacity: usize
) -> Self
pub fn new(
arrays: &[&'a DictionaryArray<T>],
use_validity: bool,
capacity: usize
) -> Self
Creates a new GrowableDictionary
bound to arrays
with a pre-allocated capacity
.
Panics
If arrays
is empty.
Trait Implementations
sourceimpl<'a, T: DictionaryKey> From<GrowableDictionary<'a, T>> for DictionaryArray<T>
impl<'a, T: DictionaryKey> From<GrowableDictionary<'a, T>> for DictionaryArray<T>
sourcefn from(val: GrowableDictionary<'a, T>) -> Self
fn from(val: GrowableDictionary<'a, T>) -> Self
Performs the conversion.
sourceimpl<'a, T: DictionaryKey> Growable<'a> for GrowableDictionary<'a, T>
impl<'a, T: DictionaryKey> Growable<'a> for GrowableDictionary<'a, T>
sourcefn extend_validity(&mut self, additional: usize)
fn extend_validity(&mut self, additional: usize)
Extends this Growable
with null elements, disregarding the bound arrays
Auto Trait Implementations
impl<'a, K> !RefUnwindSafe for GrowableDictionary<'a, K>
impl<'a, K> !Send for GrowableDictionary<'a, K>
impl<'a, K> !Sync for GrowableDictionary<'a, K>
impl<'a, K> Unpin for GrowableDictionary<'a, K> where
K: Unpin,
impl<'a, K> !UnwindSafe for GrowableDictionary<'a, K>
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