pub struct LifetimeId { /* private fields */ }
Expand description
Ten pseudo-random lower-case ASCII letters with a few visually digestible string representations. Not cryptographically secure.
Implementations§
Source§impl LifetimeId
impl LifetimeId
Sourcepub fn random() -> Self
pub fn random() -> Self
Generates a pseudo-randomized, non-secure LifetimeId
.
Sourcepub fn hyphenated(&self) -> Hyphenated<'_>
pub fn hyphenated(&self) -> Hyphenated<'_>
Returns a Hyphenated
version of this LifetimeId
.
Sourcepub fn underscored(&self) -> Underscored<'_>
pub fn underscored(&self) -> Underscored<'_>
Returns an Underscored
version of this LifetimeId
.
Sourcepub fn dotted(&self) -> Dotted<'_>
pub fn dotted(&self) -> Dotted<'_>
Returns an [Dotted
] version of this LifetimeId
.
Sourcepub fn glued(&self) -> Glued<'_>
pub fn glued(&self) -> Glued<'_>
Returns a Glued
version of this LifetimeId
.
Source§impl LifetimeId
impl LifetimeId
Sourcepub fn view_bytes(&self) -> &[u8; 10]
pub fn view_bytes(&self) -> &[u8; 10]
Exposes an immutable view of the internally held bytes.
Sourcepub fn view_glued(&self) -> &str
pub fn view_glued(&self) -> &str
Exposes an immutable view of the internally held bytes as a single ten-character string reference.
Sourcepub fn view_chunks(&self) -> (&str, &str, &str)
pub fn view_chunks(&self) -> (&str, &str, &str)
Exposes an immutable view of the internally held bytes as three string references: three, four, and three character long.
Trait Implementations§
Source§impl Clone for LifetimeId
impl Clone for LifetimeId
Source§fn clone(&self) -> LifetimeId
fn clone(&self) -> LifetimeId
Returns a duplicate 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 Debug for LifetimeId
impl Debug for LifetimeId
Source§impl Display for LifetimeId
impl Display for LifetimeId
Source§impl Hash for LifetimeId
impl Hash for LifetimeId
Source§impl Ord for LifetimeId
impl Ord for LifetimeId
Source§fn cmp(&self, other: &LifetimeId) -> Ordering
fn cmp(&self, other: &LifetimeId) -> 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 LifetimeId
impl PartialEq for LifetimeId
Source§impl PartialOrd for LifetimeId
impl PartialOrd for LifetimeId
impl Copy for LifetimeId
impl Eq for LifetimeId
impl StructuralPartialEq for LifetimeId
Auto Trait Implementations§
impl Freeze for LifetimeId
impl RefUnwindSafe for LifetimeId
impl Send for LifetimeId
impl Sync for LifetimeId
impl Unpin for LifetimeId
impl UnwindSafe for LifetimeId
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