arrow/util/mod.rs
1// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
3// SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
4
5//! Utility functions for working with Arrow data
6pub use arrow_buffer::{bit_chunk_iterator, bit_util};
7
8pub use arrow_data::bit_iterator;
9pub use arrow_data::bit_mask;
10
11#[cfg(feature = "test_utils")]
12pub mod bench_util;
13#[cfg(feature = "test_utils")]
14pub mod data_gen;
15#[cfg(feature = "prettyprint")]
16pub use arrow_cast::pretty;
17/// Re-export of the `rand` crate version used by this crate.
18///
19/// Use `arrow::util::rand` to import `StandardUniform`, `StdRng`, etc. when
20/// calling APIs in `bench_util` or `test_util` to avoid `rand` version mismatches.
21#[cfg(feature = "test_utils")]
22pub use rand;
23pub mod string_writer;
24#[cfg(any(test, feature = "test_utils"))]
25pub mod test_util;
26
27pub use arrow_cast::display;