Trait re_sdk::external::arrow2::scalar::Scalar

pub trait Scalar: Debug + Send + Sync + DynClone + 'static {
    // Required methods
    fn as_any(&self) -> &(dyn Any + 'static);
    fn is_valid(&self) -> bool;
    fn data_type(&self) -> &DataType;
}
Expand description

Trait object declaring an optional value with a DataType. This trait is often used in APIs that accept multiple scalar types.

Required Methods§

fn as_any(&self) -> &(dyn Any + 'static)

convert itself to

fn is_valid(&self) -> bool

whether it is valid

fn data_type(&self) -> &DataType

the logical type.

Trait Implementations§

§

impl<'clone> Clone for Box<dyn Scalar + 'clone>

§

fn clone(&self) -> Box<dyn Scalar + 'clone>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<'clone> Clone for Box<dyn Scalar + Send + 'clone>

§

fn clone(&self) -> Box<dyn Scalar + Send + 'clone>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<'clone> Clone for Box<dyn Scalar + Sync + Send + 'clone>

§

fn clone(&self) -> Box<dyn Scalar + Sync + Send + 'clone>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<'clone> Clone for Box<dyn Scalar + Sync + 'clone>

§

fn clone(&self) -> Box<dyn Scalar + Sync + 'clone>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl PartialEq<dyn Scalar> for Arc<dyn Scalar + '_>

§

fn eq(&self, that: &(dyn Scalar + 'static)) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl PartialEq<dyn Scalar> for Box<dyn Scalar + '_>

§

fn eq(&self, that: &(dyn Scalar + 'static)) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl PartialEq for dyn Scalar + '_

§

fn eq(&self, that: &(dyn Scalar + 'static)) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Implementors§

§

impl Scalar for BooleanScalar

§

impl Scalar for FixedSizeBinaryScalar

§

impl Scalar for FixedSizeListScalar

§

impl Scalar for MapScalar

§

impl Scalar for NullScalar

§

impl Scalar for StructScalar

§

impl Scalar for UnionScalar

§

impl<K> Scalar for DictionaryScalar<K>
where K: DictionaryKey,

§

impl<O> Scalar for BinaryScalar<O>
where O: Offset,

§

impl<O> Scalar for ListScalar<O>
where O: Offset,

§

impl<O> Scalar for Utf8Scalar<O>
where O: Offset,

§

impl<T> Scalar for PrimitiveScalar<T>
where T: NativeType,