pub struct EntityVersion(/* private fields */);Expand description
The monotonically increasing version of an entity record.
Implementations§
Source§impl EntityVersion
impl EntityVersion
Source§impl EntityVersion
impl EntityVersion
Sourcepub const fn checked_next(self) -> Option<Self>
pub const fn checked_next(self) -> Option<Self>
Returns the next value, or None when the allocation space is exhausted.
Trait Implementations§
Source§impl Clone for EntityVersion
impl Clone for EntityVersion
impl Copy for EntityVersion
Source§impl Debug for EntityVersion
impl Debug for EntityVersion
Source§impl Display for EntityVersion
impl Display for EntityVersion
impl Eq for EntityVersion
Source§impl From<EntityVersion> for u64
impl From<EntityVersion> for u64
Source§fn from(value: EntityVersion) -> Self
fn from(value: EntityVersion) -> Self
Converts to this type from the input type.
Source§impl Hash for EntityVersion
impl Hash for EntityVersion
Source§impl Ord for EntityVersion
impl Ord for EntityVersion
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 EntityVersion
impl PartialEq for EntityVersion
Source§impl PartialOrd for EntityVersion
impl PartialOrd for EntityVersion
impl StructuralPartialEq for EntityVersion
Auto Trait Implementations§
impl Freeze for EntityVersion
impl RefUnwindSafe for EntityVersion
impl Send for EntityVersion
impl Sync for EntityVersion
impl Unpin for EntityVersion
impl UnsafeUnpin for EntityVersion
impl UnwindSafe for EntityVersion
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