Struct arrow2::scalar::PrimitiveScalar
source · pub struct PrimitiveScalar<T: NativeType> { /* private fields */ }
Expand description
Implementations§
source§impl<T: NativeType> PrimitiveScalar<T>
impl<T: NativeType> PrimitiveScalar<T>
sourcepub fn new(data_type: DataType, value: Option<T>) -> Self
pub fn new(data_type: DataType, value: Option<T>) -> Self
Returns a new PrimitiveScalar
.
Trait Implementations§
source§impl<T: Clone + NativeType> Clone for PrimitiveScalar<T>
impl<T: Clone + NativeType> Clone for PrimitiveScalar<T>
source§fn clone(&self) -> PrimitiveScalar<T>
fn clone(&self) -> PrimitiveScalar<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Debug + NativeType> Debug for PrimitiveScalar<T>
impl<T: Debug + NativeType> Debug for PrimitiveScalar<T>
source§impl<T: NativeType> From<Option<T>> for PrimitiveScalar<T>
impl<T: NativeType> From<Option<T>> for PrimitiveScalar<T>
source§impl<T: PartialEq + NativeType> PartialEq<PrimitiveScalar<T>> for PrimitiveScalar<T>
impl<T: PartialEq + NativeType> PartialEq<PrimitiveScalar<T>> for PrimitiveScalar<T>
source§fn eq(&self, other: &PrimitiveScalar<T>) -> bool
fn eq(&self, other: &PrimitiveScalar<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T: NativeType> Scalar for PrimitiveScalar<T>
impl<T: NativeType> Scalar for PrimitiveScalar<T>
impl<T: Eq + NativeType> Eq for PrimitiveScalar<T>
impl<T: NativeType> StructuralEq for PrimitiveScalar<T>
impl<T: NativeType> StructuralPartialEq for PrimitiveScalar<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for PrimitiveScalar<T>where
T: RefUnwindSafe,
impl<T> Send for PrimitiveScalar<T>
impl<T> Sync for PrimitiveScalar<T>
impl<T> Unpin for PrimitiveScalar<T>where
T: Unpin,
impl<T> UnwindSafe for PrimitiveScalar<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.