/// Canonical method to create a new [`MutableBooleanArray`].
Canonical method to create a new [`MutableBooleanArray`].
Canonical method to create a new [ ` MutableBooleanArray ` ] .
pub fn from_data(
        data_type: DataType,
        values: MutableBitmap,
        validity: Option<MutableBitmap>,
    ) -> Self {
        if data_type.to_physical_type() != PhysicalType::Boolean {
            panic!("MutableBooleanArray can only be initialized with DataType::Boolean")
        }
        Self {
            data_type,
            values,
            validity,
        }
    }
pub fn from_data ( data_type : DataType , values : MutableBitmap , validity : Option < MutableBitmap > , ) -> Self { if data_type . to_physical_type ( ) != PhysicalType :: Boolean { panic ! ( " " ) } Self { data_type , values , validity , } }
Canonical method to create a new [`MutableBooleanArray`].
Canonical method to create a new [ ` MutableBooleanArray ` ] .
data_type
DataType
values
MutableBitmap
validity
Option<MutableBitmap>