pub struct Run { /* private fields */ }Expand description
A consecutive run of unique integer points.
item_count includes duplicate input items mapped to points in the run.
point_count counts only unique points.
Implementations§
Source§impl Run
impl Run
Sourcepub fn point_count(&self) -> usize
pub fn point_count(&self) -> usize
Returns the number of unique points in the run.
Sourcepub fn item_count(&self) -> usize
pub fn item_count(&self) -> usize
Returns the number of input items mapped to points of the run.
Trait Implementations§
impl Eq for Run
impl StructuralPartialEq for Run
Auto Trait Implementations§
impl Forget for Run
impl Freeze for Run
impl RefUnwindSafe for Run
impl Send for Run
impl Sync for Run
impl Unpin for Run
impl UnsafeUnpin for Run
impl UnwindSafe for Run
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