pub struct BoolColumn { /* private fields */ }Expand description
A column of bool values.
Implementations§
Source§impl BoolColumn
impl BoolColumn
Sourcepub fn push(&mut self, value: Option<bool>)
pub fn push(&mut self, value: Option<bool>)
Add the value of the next row,
a row without value matches neither true nor false.
The column has to get a value for every row of the database: what a filter on it does for rows it knows nothing of is not defined.
Sourcepub fn filter<'a>(&'a self, plan: &mut Plan<'a>, slot: usize, value: bool)
pub fn filter<'a>(&'a self, plan: &mut Plan<'a>, slot: usize, value: bool)
Make the slot of the plan filter on the given value.
Sourcepub fn shrink_to_fit(&mut self)
pub fn shrink_to_fit(&mut self)
Release the memory the column does not need.
Trait Implementations§
Source§impl Clone for BoolColumn
impl Clone for BoolColumn
Source§impl Debug for BoolColumn
impl Debug for BoolColumn
Auto Trait Implementations§
impl Forget for BoolColumn
impl Freeze for BoolColumn
impl Move for BoolColumn
impl RefUnwindSafe for BoolColumn
impl Send for BoolColumn
impl Sync for BoolColumn
impl Unpin for BoolColumn
impl UnsafeUnpin for BoolColumn
impl UnwindSafe for BoolColumn
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