Struct libkeycard::RandomID
source · [−]pub struct RandomID { /* private fields */ }Expand description
The RandomID class is similar to v4 UUIDs. To obtain the maximum amount of entropy, all bits are random and no version information is stored in them. The only null value for the RandomID is all zeroes. Lastly, the only permissible format for the string version of the RandomID has all letters in lowercase and dashes are placed in the same places as for UUIDs.
Implementations
Trait Implementations
sourceimpl PartialOrd<RandomID> for RandomID
impl PartialOrd<RandomID> for RandomID
sourcefn partial_cmp(&self, other: &RandomID) -> Option<Ordering>
fn partial_cmp(&self, other: &RandomID) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn 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 more
impl StructuralPartialEq for RandomID
Auto Trait Implementations
impl RefUnwindSafe for RandomID
impl Send for RandomID
impl Sync for RandomID
impl Unpin for RandomID
impl UnwindSafe for RandomID
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more