pub struct ProjectionGeneration(/* private fields */);Expand description
A nonzero, never-reused build generation for one projection identity.
Implementations§
Source§impl ProjectionGeneration
impl ProjectionGeneration
Sourcepub const fn new(value: u64) -> Option<Self>
pub const fn new(value: u64) -> Option<Self>
Creates a generation, rejecting the semantic zero sentinel.
Sourcepub const fn to_be_bytes(self) -> [u8; 8]
pub const fn to_be_bytes(self) -> [u8; 8]
Returns the canonical big-endian representation.
Sourcepub const fn checked_next(self) -> Option<Self>
pub const fn checked_next(self) -> Option<Self>
Returns the next generation, or None at the numeric limit.
Trait Implementations§
Source§impl Clone for ProjectionGeneration
impl Clone for ProjectionGeneration
impl Copy for ProjectionGeneration
Source§impl Debug for ProjectionGeneration
impl Debug for ProjectionGeneration
impl Eq for ProjectionGeneration
Source§impl From<ProjectionGeneration> for u64
impl From<ProjectionGeneration> for u64
Source§fn from(value: ProjectionGeneration) -> Self
fn from(value: ProjectionGeneration) -> Self
Converts to this type from the input type.
Source§impl Hash for ProjectionGeneration
impl Hash for ProjectionGeneration
Source§impl Ord for ProjectionGeneration
impl Ord for ProjectionGeneration
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 PartialEq for ProjectionGeneration
impl PartialEq for ProjectionGeneration
Source§impl PartialOrd for ProjectionGeneration
impl PartialOrd for ProjectionGeneration
impl StructuralPartialEq for ProjectionGeneration
Auto Trait Implementations§
impl Freeze for ProjectionGeneration
impl RefUnwindSafe for ProjectionGeneration
impl Send for ProjectionGeneration
impl Sync for ProjectionGeneration
impl Unpin for ProjectionGeneration
impl UnsafeUnpin for ProjectionGeneration
impl UnwindSafe for ProjectionGeneration
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