pub struct IndexedPresence { /* private fields */ }Implementations§
Source§impl IndexedPresence
impl IndexedPresence
pub fn contains(&self, index: i64) -> bool
pub fn count(&self) -> usize
pub fn item_count(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn runs(&self) -> Runs
pub fn complement_runs(&self, horizon: Range<i64>) -> Runs
pub fn count_in(&self, range: Range<i64>) -> usize
pub fn any_in(&self, range: Range<i64>) -> bool
Trait Implementations§
Source§impl Accumulator<i64, IndexedPresence> for IndexedPresenceAccumulator
impl Accumulator<i64, IndexedPresence> for IndexedPresenceAccumulator
type Retraction = i64
fn accumulate(&mut self, value: i64) -> Self::Retraction
fn retract(&mut self, value: Self::Retraction)
fn with_result<T>(&self, f: impl FnOnce(&IndexedPresence) -> T) -> T
fn reset(&mut self)
fn finish(&self) -> Rwhere
R: Clone,
Source§impl Clone for IndexedPresence
impl Clone for IndexedPresence
Source§impl Debug for IndexedPresence
impl Debug for IndexedPresence
Source§impl Default for IndexedPresence
impl Default for IndexedPresence
impl Eq for IndexedPresence
Source§impl PartialEq for IndexedPresence
impl PartialEq for IndexedPresence
impl StructuralPartialEq for IndexedPresence
Auto Trait Implementations§
impl Freeze for IndexedPresence
impl RefUnwindSafe for IndexedPresence
impl Send for IndexedPresence
impl Sync for IndexedPresence
impl Unpin for IndexedPresence
impl UnsafeUnpin for IndexedPresence
impl UnwindSafe for IndexedPresence
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