pub struct HeightStats { /* private fields */ }Implementations§
Source§impl HeightStats
impl HeightStats
pub const fn min_positive_height_or_zero(&self) -> usize
pub const fn max_height(&self) -> usize
Source§impl HeightStats
impl HeightStats
Sourcepub const fn has_positive_height(&self) -> bool
pub const fn has_positive_height(&self) -> bool
Returns whether any positive stack height was observed.
Sourcepub const fn has_overlap(&self) -> bool
pub const fn has_overlap(&self) -> bool
Returns whether at least one coordinate range is covered by multiple intervals.
Sourcepub const fn is_uniform_positive_height(&self) -> bool
pub const fn is_uniform_positive_height(&self) -> bool
Returns whether all positive-height regions share the same height.
Source§impl HeightStats
impl HeightStats
pub const fn uniform_positive_height(&self) -> Option<NonZeroUsize>
Trait Implementations§
Source§impl Clone for HeightStats
impl Clone for HeightStats
Source§fn clone(&self) -> HeightStats
fn clone(&self) -> HeightStats
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 moreimpl Copy for HeightStats
Source§impl Debug for HeightStats
impl Debug for HeightStats
Source§impl Default for HeightStats
impl Default for HeightStats
impl Eq for HeightStats
Source§impl PartialEq for HeightStats
impl PartialEq for HeightStats
Source§fn eq(&self, other: &HeightStats) -> bool
fn eq(&self, other: &HeightStats) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HeightStats
Auto Trait Implementations§
impl Freeze for HeightStats
impl RefUnwindSafe for HeightStats
impl Send for HeightStats
impl Sync for HeightStats
impl Unpin for HeightStats
impl UnsafeUnpin for HeightStats
impl UnwindSafe for HeightStats
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more