pub struct DictionaryScalar<K> where
K: DictionaryKey, { /* private fields */ }
Expand description
The DictionaryArray
equivalent of Array
for Scalar
.
Implementations
sourceimpl<K> DictionaryScalar<K> where
K: DictionaryKey,
impl<K> DictionaryScalar<K> where
K: DictionaryKey,
sourcepub fn new(
data_type: DataType,
value: Option<Arc<dyn Scalar + 'static>>
) -> DictionaryScalar<K>
pub fn new(
data_type: DataType,
value: Option<Arc<dyn Scalar + 'static>>
) -> DictionaryScalar<K>
returns a new DictionaryScalar
Panics
iff
- the
data_type
is notList
orLargeList
(depending on this scalar’s offsetO
) - the child of the
data_type
is not equal to thevalues
Trait Implementations
sourceimpl<K> Clone for DictionaryScalar<K> where
K: Clone + DictionaryKey,
impl<K> Clone for DictionaryScalar<K> where
K: Clone + DictionaryKey,
sourcefn clone(&self) -> DictionaryScalar<K>
fn clone(&self) -> DictionaryScalar<K>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<K> Debug for DictionaryScalar<K> where
K: Debug + DictionaryKey,
impl<K> Debug for DictionaryScalar<K> where
K: Debug + DictionaryKey,
sourceimpl<K> PartialEq<DictionaryScalar<K>> for DictionaryScalar<K> where
K: DictionaryKey,
impl<K> PartialEq<DictionaryScalar<K>> for DictionaryScalar<K> where
K: DictionaryKey,
Auto Trait Implementations
impl<K> !RefUnwindSafe for DictionaryScalar<K>
impl<K> Send for DictionaryScalar<K>
impl<K> Sync for DictionaryScalar<K>
impl<K> Unpin for DictionaryScalar<K> where
K: Unpin,
impl<K> !UnwindSafe for DictionaryScalar<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
sourceimpl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more