vortex_array/array/
convert.rs

1// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: Copyright the Vortex contributors
3
4use crate::ArrayRef;
5
6/// Trait for converting a type into a Vortex [`ArrayRef`].
7pub trait IntoArray {
8    fn into_array(self) -> ArrayRef;
9}
10
11impl IntoArray for ArrayRef {
12    fn into_array(self) -> ArrayRef {
13        self
14    }
15}