1 2 3 4 5 6 7 8 9 10
// SPDX-License-Identifier: Apache-2.0 // SPDX-FileCopyrightText: Copyright the Vortex contributors use crate::arrays::BoolArray; use crate::arrays::bool::BoolArrayExt; pub(super) fn check_bool_constant(array: &BoolArray) -> bool { let true_count = array.to_bit_buffer().true_count(); true_count == array.len() || true_count == 0 }