pub struct ProjectionCheckpointOrdinal(/* private fields */);Expand description
Coordinator-allocated nonzero checkpoint ordinal within one allocation incarnation.
Implementations§
Source§impl ProjectionCheckpointOrdinal
impl ProjectionCheckpointOrdinal
Sourcepub const fn new(value: u64) -> Option<Self>
pub const fn new(value: u64) -> Option<Self>
Reconstructs a nonzero ordinal; this does not grant allocation authority.
Sourcepub const fn to_be_bytes(self) -> [u8; 8]
pub const fn to_be_bytes(self) -> [u8; 8]
Canonical ordered numeric representation.
Sourcepub const fn checked_next(self) -> Option<Self>
pub const fn checked_next(self) -> Option<Self>
Checked successor; exhaustion never wraps or reuses an ordinal.
Trait Implementations§
Source§impl Clone for ProjectionCheckpointOrdinal
impl Clone for ProjectionCheckpointOrdinal
impl Copy for ProjectionCheckpointOrdinal
Source§impl Debug for ProjectionCheckpointOrdinal
impl Debug for ProjectionCheckpointOrdinal
impl Eq for ProjectionCheckpointOrdinal
Source§impl Hash for ProjectionCheckpointOrdinal
impl Hash for ProjectionCheckpointOrdinal
Source§impl Ord for ProjectionCheckpointOrdinal
impl Ord for ProjectionCheckpointOrdinal
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 ProjectionCheckpointOrdinal
impl PartialOrd for ProjectionCheckpointOrdinal
impl StructuralPartialEq for ProjectionCheckpointOrdinal
Auto Trait Implementations§
impl Freeze for ProjectionCheckpointOrdinal
impl RefUnwindSafe for ProjectionCheckpointOrdinal
impl Send for ProjectionCheckpointOrdinal
impl Sync for ProjectionCheckpointOrdinal
impl Unpin for ProjectionCheckpointOrdinal
impl UnsafeUnpin for ProjectionCheckpointOrdinal
impl UnwindSafe for ProjectionCheckpointOrdinal
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