pub trait DataBitVec: Clone {
Show 13 methods
// Required methods
fn spawn(&self, capacity: usize) -> Self;
fn push(&mut self, bit: bool);
fn get(&self, idx: usize) -> bool;
fn set(&mut self, idx: usize, value: bool);
fn len(&self) -> usize;
fn clear(&mut self);
fn extend_from(&mut self, other: &Self);
fn count_ones(&self) -> usize;
fn iter(&self) -> impl Iterator<Item = bool> + '_;
fn capacity(&self) -> usize;
// Provided methods
fn is_empty(&self) -> bool { ... }
fn count_zeros(&self) -> usize { ... }
fn take(&self, n: usize) -> Self { ... }
}Expand description
Trait for bitvec-like storage (null masks and boolean data).
Required Methods§
fn spawn(&self, capacity: usize) -> Self
fn push(&mut self, bit: bool)
fn get(&self, idx: usize) -> bool
fn set(&mut self, idx: usize, value: bool)
fn len(&self) -> usize
fn clear(&mut self)
fn extend_from(&mut self, other: &Self)
fn count_ones(&self) -> usize
fn iter(&self) -> impl Iterator<Item = bool> + '_
fn capacity(&self) -> usize
Provided Methods§
fn is_empty(&self) -> bool
fn count_zeros(&self) -> usize
fn take(&self, n: usize) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.