Skip to main content

vortex_array/arrays/struct_/vtable/
validity.rs

1// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: Copyright the Vortex contributors
3
4use vortex_error::VortexResult;
5
6use crate::array::ArrayView;
7use crate::array::ValidityVTable;
8use crate::arrays::struct_::StructArrayExt;
9use crate::arrays::struct_::vtable::Struct;
10use crate::validity::Validity;
11
12impl ValidityVTable<Struct> for Struct {
13    fn validity(array: ArrayView<'_, Struct>) -> VortexResult<Validity> {
14        Ok(array.struct_validity())
15    }
16}