pub struct Count(/* private fields */);Expand description
Exact segment cardinality in the metadata index domain.
Implementations§
Source§impl Count
impl Count
pub const EMPTY: Self
pub const ONE: Self
pub const TWO: Self
pub const fn new(count: u32) -> Self
pub const fn into_raw(self) -> u32
pub const fn is_empty(self) -> bool
pub const fn is_many(self) -> bool
pub fn checked_add(self, added: Self) -> Option<Self>
pub fn checked_sub(self, removed: Self) -> Option<Self>
Trait Implementations§
impl Copy for Count
impl Eq for Count
Source§impl Ord for Count
impl Ord for Count
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Count
impl PartialOrd for Count
impl StructuralPartialEq for Count
Auto Trait Implementations§
impl Forget for Count
impl Freeze for Count
impl RefUnwindSafe for Count
impl Send for Count
impl Sync for Count
impl Unpin for Count
impl UnsafeUnpin for Count
impl UnwindSafe for Count
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