pub struct BooleanColumn { /* private fields */ }Expand description
A column of true/false values (pond-ts kind: 'boolean'). A gap is an
Arrow null. Held as an Arrow Boolean array (one bit per row).
Implementations§
Source§impl BooleanColumn
impl BooleanColumn
Sourcepub fn from_options(values: impl IntoIterator<Item = Option<bool>>) -> Self
pub fn from_options(values: impl IntoIterator<Item = Option<bool>>) -> Self
Build from optional values; None is a gap.
Sourcepub fn get(&self, i: usize) -> Option<bool>
pub fn get(&self, i: usize) -> Option<bool>
The value at i, or None for a gap. Panics if i is out of range.
Sourcepub fn missing_count(&self) -> usize
pub fn missing_count(&self) -> usize
Number of gaps.
Trait Implementations§
Source§impl Clone for BooleanColumn
impl Clone for BooleanColumn
Source§impl Debug for BooleanColumn
impl Debug for BooleanColumn
Source§impl From<BooleanColumn> for ColumnData
impl From<BooleanColumn> for ColumnData
Source§fn from(c: BooleanColumn) -> Self
fn from(c: BooleanColumn) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BooleanColumn
impl PartialEq for BooleanColumn
impl StructuralPartialEq for BooleanColumn
Auto Trait Implementations§
impl Freeze for BooleanColumn
impl RefUnwindSafe for BooleanColumn
impl Send for BooleanColumn
impl Sync for BooleanColumn
impl Unpin for BooleanColumn
impl UnsafeUnpin for BooleanColumn
impl UnwindSafe for BooleanColumn
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more