Struct pancake_engine_common::fs_utils::PathNameNum
source · pub struct PathNameNum(u64);Expand description
A strictly increasing u64 that is used to prevent file/dir name collisions.
Tuple Fields§
§0: u64Implementations§
Methods from Deref<Target = u64>§
pub const MIN: u64 = 0u64
pub const MAX: u64 = 18_446_744_073_709_551_615u64
pub const BITS: u32 = 64u32
Trait Implementations§
source§impl Clone for PathNameNum
impl Clone for PathNameNum
source§fn clone(&self) -> PathNameNum
fn clone(&self) -> PathNameNum
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Deref for PathNameNum
impl Deref for PathNameNum
source§impl From<u64> for PathNameNum
impl From<u64> for PathNameNum
source§fn from(original: u64) -> PathNameNum
fn from(original: u64) -> PathNameNum
Converts to this type from the input type.
source§impl Ord for PathNameNum
impl Ord for PathNameNum
source§fn cmp(&self, other: &PathNameNum) -> Ordering
fn cmp(&self, other: &PathNameNum) -> Ordering
1.21.0 · 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
source§impl PartialEq for PathNameNum
impl PartialEq for PathNameNum
source§fn eq(&self, other: &PathNameNum) -> bool
fn eq(&self, other: &PathNameNum) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for PathNameNum
impl PartialOrd for PathNameNum
source§fn partial_cmp(&self, other: &PathNameNum) -> Option<Ordering>
fn partial_cmp(&self, other: &PathNameNum) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for PathNameNum
impl Eq for PathNameNum
impl StructuralEq for PathNameNum
impl StructuralPartialEq for PathNameNum
Auto Trait Implementations§
impl RefUnwindSafe for PathNameNum
impl Send for PathNameNum
impl Sync for PathNameNum
impl Unpin for PathNameNum
impl UnwindSafe for PathNameNum
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