Struct arrow2::scalar::PrimitiveScalar
source · [−]pub struct PrimitiveScalar<T: NativeType> { /* private fields */ }
Expand description
Implementations
sourceimpl<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
sourceimpl<T: Clone + NativeType> Clone for PrimitiveScalar<T>
impl<T: Clone + NativeType> Clone for PrimitiveScalar<T>
sourcefn clone(&self) -> PrimitiveScalar<T>
fn clone(&self) -> PrimitiveScalar<T>
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<T: Debug + NativeType> Debug for PrimitiveScalar<T>
impl<T: Debug + NativeType> Debug for PrimitiveScalar<T>
sourceimpl<T: NativeType> From<Option<T>> for PrimitiveScalar<T>
impl<T: NativeType> From<Option<T>> for PrimitiveScalar<T>
sourceimpl<T: PartialEq + NativeType> PartialEq<PrimitiveScalar<T>> for PrimitiveScalar<T>
impl<T: PartialEq + NativeType> PartialEq<PrimitiveScalar<T>> for PrimitiveScalar<T>
sourcefn 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 ==
. Read more
sourceimpl<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
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<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.