Struct narrow::array::BooleanArray
source · pub struct BooleanArray<const NULLABLE: bool = false, Buffer: BufferType = VecBuffer>(_)
where
Bitmap<Buffer>: Validity<NULLABLE>;Expand description
Array with boolean values.
Values are stored using single bits in a Bitmap.
Trait Implementations§
source§impl<Buffer: BufferType> BitmapRef for BooleanArray<true, Buffer>
impl<Buffer: BufferType> BitmapRef for BooleanArray<true, Buffer>
source§impl<Buffer: BufferType> BitmapRefMut for BooleanArray<true, Buffer>
impl<Buffer: BufferType> BitmapRefMut for BooleanArray<true, Buffer>
source§impl<const NULLABLE: bool, Buffer: BufferType> Default for BooleanArray<NULLABLE, Buffer>where
Bitmap<Buffer>: Validity<NULLABLE>,
<Bitmap<Buffer> as Validity<NULLABLE>>::Storage<Buffer>: Default,
impl<const NULLABLE: bool, Buffer: BufferType> Default for BooleanArray<NULLABLE, Buffer>where Bitmap<Buffer>: Validity<NULLABLE>, <Bitmap<Buffer> as Validity<NULLABLE>>::Storage<Buffer>: Default,
source§impl<U, const NULLABLE: bool, Buffer: BufferType> Extend<U> for BooleanArray<NULLABLE, Buffer>where
Bitmap<Buffer>: Validity<NULLABLE>,
<Bitmap<Buffer> as Validity<NULLABLE>>::Storage<Buffer>: Extend<U>,
impl<U, const NULLABLE: bool, Buffer: BufferType> Extend<U> for BooleanArray<NULLABLE, Buffer>where Bitmap<Buffer>: Validity<NULLABLE>, <Bitmap<Buffer> as Validity<NULLABLE>>::Storage<Buffer>: Extend<U>,
source§fn extend<I: IntoIterator<Item = U>>(&mut self, iter: I)
fn extend<I: IntoIterator<Item = U>>(&mut self, iter: I)
Extends a collection with the contents of an iterator. Read more
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
source§impl<const NULLABLE: bool, U, Buffer: BufferType> FromIterator<U> for BooleanArray<NULLABLE, Buffer>where
Bitmap<Buffer>: Validity<NULLABLE>,
<Bitmap<Buffer> as Validity<NULLABLE>>::Storage<Buffer>: FromIterator<U>,
impl<const NULLABLE: bool, U, Buffer: BufferType> FromIterator<U> for BooleanArray<NULLABLE, Buffer>where Bitmap<Buffer>: Validity<NULLABLE>, <Bitmap<Buffer> as Validity<NULLABLE>>::Storage<Buffer>: FromIterator<U>,
source§fn from_iter<I: IntoIterator<Item = U>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = U>>(iter: I) -> Self
Creates a value from an iterator. Read more
source§impl<'a, const NULLABLE: bool, Buffer: BufferType> IntoIterator for &'a BooleanArray<NULLABLE, Buffer>where
Bitmap<Buffer>: Validity<NULLABLE>,
&'a <Bitmap<Buffer> as Validity<NULLABLE>>::Storage<Buffer>: IntoIterator,
impl<'a, const NULLABLE: bool, Buffer: BufferType> IntoIterator for &'a BooleanArray<NULLABLE, Buffer>where Bitmap<Buffer>: Validity<NULLABLE>, &'a <Bitmap<Buffer> as Validity<NULLABLE>>::Storage<Buffer>: IntoIterator,
§type Item = <&'a <Bitmap<Buffer> as Validity<NULLABLE>>::Storage<Buffer> as IntoIterator>::Item
type Item = <&'a <Bitmap<Buffer> as Validity<NULLABLE>>::Storage<Buffer> as IntoIterator>::Item
The type of the elements being iterated over.
§type IntoIter = <&'a <Bitmap<Buffer> as Validity<NULLABLE>>::Storage<Buffer> as IntoIterator>::IntoIter
type IntoIter = <&'a <Bitmap<Buffer> as Validity<NULLABLE>>::Storage<Buffer> as IntoIterator>::IntoIter
Which kind of iterator are we turning this into?
source§impl<const NULLABLE: bool, Buffer: BufferType> IntoIterator for BooleanArray<NULLABLE, Buffer>where
Bitmap<Buffer>: Validity<NULLABLE>,
<Bitmap<Buffer> as Validity<NULLABLE>>::Storage<Buffer>: IntoIterator,
impl<const NULLABLE: bool, Buffer: BufferType> IntoIterator for BooleanArray<NULLABLE, Buffer>where Bitmap<Buffer>: Validity<NULLABLE>, <Bitmap<Buffer> as Validity<NULLABLE>>::Storage<Buffer>: IntoIterator,
§type Item = <<Bitmap<Buffer> as Validity<NULLABLE>>::Storage<Buffer> as IntoIterator>::Item
type Item = <<Bitmap<Buffer> as Validity<NULLABLE>>::Storage<Buffer> as IntoIterator>::Item
The type of the elements being iterated over.
§type IntoIter = <<Bitmap<Buffer> as Validity<NULLABLE>>::Storage<Buffer> as IntoIterator>::IntoIter
type IntoIter = <<Bitmap<Buffer> as Validity<NULLABLE>>::Storage<Buffer> as IntoIterator>::IntoIter
Which kind of iterator are we turning this into?
source§impl<const NULLABLE: bool, Buffer: BufferType> Length for BooleanArray<NULLABLE, Buffer>where
Bitmap<Buffer>: Validity<NULLABLE>,
<Bitmap<Buffer> as Validity<NULLABLE>>::Storage<Buffer>: Length,
impl<const NULLABLE: bool, Buffer: BufferType> Length for BooleanArray<NULLABLE, Buffer>where Bitmap<Buffer>: Validity<NULLABLE>, <Bitmap<Buffer> as Validity<NULLABLE>>::Storage<Buffer>: Length,
source§impl<Buffer: BufferType> ValidityBitmap for BooleanArray<true, Buffer>
impl<Buffer: BufferType> ValidityBitmap for BooleanArray<true, Buffer>
source§fn is_null(&self, index: usize) -> Option<bool>
fn is_null(&self, index: usize) -> Option<bool>
Returns
true if the element at position index is null.source§unsafe fn is_null_unchecked(&self, index: usize) -> bool
unsafe fn is_null_unchecked(&self, index: usize) -> bool
Returns
true if the element at position index is null, without
performing any bounds checking. Read moresource§fn null_count(&self) -> usize
fn null_count(&self) -> usize
Returns the number of null elements.
source§fn is_valid(&self, index: usize) -> Option<bool>
fn is_valid(&self, index: usize) -> Option<bool>
Returns
true if the element at position index is valid.source§unsafe fn is_valid_unchecked(&self, index: usize) -> bool
unsafe fn is_valid_unchecked(&self, index: usize) -> bool
Returns
true if the element at position index is valid, without
performing any bounds checking. Read moresource§fn valid_count(&self) -> usize
fn valid_count(&self) -> usize
Returns the number of valid elements.
impl<const NULLABLE: bool, Buffer: BufferType> Array for BooleanArray<NULLABLE, Buffer>where Bitmap<Buffer>: Validity<NULLABLE>,
Auto Trait Implementations§
impl<const NULLABLE: bool = false, Buffer = VecBuffer> !RefUnwindSafe for BooleanArray<NULLABLE, Buffer>
impl<const NULLABLE: bool = false, Buffer = VecBuffer> !Send for BooleanArray<NULLABLE, Buffer>
impl<const NULLABLE: bool = false, Buffer = VecBuffer> !Sync for BooleanArray<NULLABLE, Buffer>
impl<const NULLABLE: bool = false, Buffer = VecBuffer> !Unpin for BooleanArray<NULLABLE, Buffer>
impl<const NULLABLE: bool = false, Buffer = VecBuffer> !UnwindSafe for BooleanArray<NULLABLE, Buffer>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more