Struct mini_functions::uuid::UUID
source · #[non_exhaustive]pub struct UUID { /* private fields */ }Expand description
Implementations§
source§impl UUID
impl UUID
sourcepub fn new(version: u8, ns: &Uuid, name: &str) -> Self
pub fn new(version: u8, ns: &Uuid, name: &str) -> Self
Generates a new UUID (Universally Unique Identifier) in version 3, 4, or 5.
Arguments
version- The version of the UUID to generate. Must be 3, 4, or 5.ns- The namespace to use for the UUID. Must be a valid UUID.name- The name to use for the UUID.
Trait Implementations§
source§impl Display for UUID
impl Display for UUID
This implementation of the fmt::Display trait allows instances of UUID to be printed using the {} formatting placeholder. The write! macro is used to write the string representation of self.inner to the provided fmt::Formatter. The fmt::Result type is returned to indicate whether the operation was successful or not.
source§impl PartialEq<UUID> for UUID
impl PartialEq<UUID> for UUID
source§impl PartialOrd<UUID> for UUID
impl PartialOrd<UUID> for UUID
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 StructuralPartialEq for UUID
Auto Trait Implementations§
impl RefUnwindSafe for UUID
impl Send for UUID
impl Sync for UUID
impl Unpin for UUID
impl UnwindSafe for UUID
Blanket Implementations§
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for Pwhere
R: Read + ReadEndian<P>,
P: Default,
impl<R, P> ReadPrimitive<R> for Pwhere
R: Read + ReadEndian<P>,
P: Default,
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().