vortex_scalar/
lib.rs

1// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: Copyright the Vortex contributors
3
4//! Scalar values and types for the Vortex system.
5//!
6//! This crate provides scalar types and values that can be used to represent individual data
7//! elements in the Vortex array system. [`Scalar`]s are composed of a logical data type
8//! ([`DType`](vortex_dtype::DType)) and a value ([`ScalarValue`]).
9
10// TODO(connor): There are a lot of `From` and `TryFrom` conversions back and forth between
11// `Option<T>`, `Vec<T>`, `Scalar`, `ScalarValue`, and `ListScalar`. This can be cleaned up /
12// consolidated.
13
14#![deny(missing_docs)]
15
16#[cfg(feature = "arbitrary")]
17pub mod arbitrary;
18mod arrow;
19mod bigint;
20mod binary;
21mod bool;
22mod decimal;
23mod display;
24mod extension;
25mod list;
26mod null;
27mod primitive;
28mod proto;
29mod pvalue;
30mod scalar;
31mod scalar_type;
32mod scalar_value;
33mod struct_;
34#[cfg(test)]
35mod tests;
36mod utf8;
37
38pub use bigint::*;
39pub use binary::*;
40pub use bool::*;
41pub use decimal::*;
42pub use extension::*;
43pub use list::*;
44pub use primitive::*;
45pub use pvalue::*;
46pub use scalar::*;
47pub use scalar_type::*;
48pub use scalar_value::*;
49pub use struct_::*;
50pub use utf8::*;