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§fn clone(&self) -> IndexedPresence
fn clone(&self) -> IndexedPresence
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IndexedPresence
impl Debug for IndexedPresence
Source§impl Default for IndexedPresence
impl Default for IndexedPresence
Source§fn default() -> IndexedPresence
fn default() -> IndexedPresence
Returns the “default value” for a type. Read more
Source§impl PartialEq for IndexedPresence
impl PartialEq for IndexedPresence
Source§fn eq(&self, other: &IndexedPresence) -> bool
fn eq(&self, other: &IndexedPresence) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq 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