pub struct UUID { /* private fields */ }Expand description
A UUID represented as a 16-byte array
Implementations§
Source§impl UUID
impl UUID
Sourcepub const NIL: Self
pub const NIL: Self
The nil UUID, where all bits are set to zero.
00000000-0000-0000-0000-000000000000Sourcepub const MAX: Self
pub const MAX: Self
The max UUID, where all bits are set to one.
ffffffff-ffff-ffff-ffff-ffffffffffffSourcepub const NS_DNS: Self
pub const NS_DNS: Self
The DNS namespace UUID, for generating v3/v5 UUIDs from domain names.
Defined in RFC 4122 Appendix C.
6ba7b810-9dad-11d1-80b4-00c04fd430c8Sourcepub const NS_URL: Self
pub const NS_URL: Self
The URL namespace UUID, for generating v3/v5 UUIDs from URLs.
Defined in RFC 4122 Appendix C.
6ba7b811-9dad-11d1-80b4-00c04fd430c8Sourcepub const NS_OID: Self
pub const NS_OID: Self
The OID namespace UUID, for generating v3/v5 UUIDs from ISO OIDs.
Defined in RFC 4122 Appendix C.
6ba7b812-9dad-11d1-80b4-00c04fd430c8Sourcepub const NS_X500: Self
pub const NS_X500: Self
The X.500 namespace UUID, for generating v3/v5 UUIDs from X.500 DNs.
Defined in RFC 4122 Appendix C.
6ba7b814-9dad-11d1-80b4-00c04fd430c8Sourcepub const BLUETOOTH_BASE: Self
pub const BLUETOOTH_BASE: Self
The Bluetooth Base UUID.
Used to construct full 128-bit UUIDs from 16-bit and 32-bit Bluetooth
identifiers. To convert a 16-bit UUID xxxx: 0000xxxx-0000-1000-8000-00805f9b34fb.
Defined in the Bluetooth Core Specification.
00000000-0000-1000-8000-00805f9b34fbSourcepub const GPT_EFI_SYSTEM: Self
pub const GPT_EFI_SYSTEM: Self
EFI System Partition type GUID.
The FAT-formatted partition containing UEFI bootloaders and drivers.
c12a7328-f81f-11d2-ba4b-00a0c93ec93bSourcepub const GPT_LINUX_FS: Self
pub const GPT_LINUX_FS: Self
Linux filesystem data partition type GUID.
The generic type for Linux filesystem partitions (ext4, xfs, btrfs, etc.).
0fc63daf-8483-4772-8e79-3d69d8477de4Sourcepub const GPT_LINUX_SWAP: Self
pub const GPT_LINUX_SWAP: Self
Linux swap partition type GUID.
0657fd6d-a4ab-43c4-84e5-0933c84b4f4fSourcepub const GPT_LINUX_ROOT_X86_64: Self
pub const GPT_LINUX_ROOT_X86_64: Self
Linux root partition (x86-64) type GUID.
Used by systemd-gpt-auto-generator for automatic root discovery.
4f68bce3-e8cd-4db1-96e7-fbcaf984b709Sourcepub const GPT_LINUX_HOME: Self
pub const GPT_LINUX_HOME: Self
Linux home partition type GUID.
Used by systemd-gpt-auto-generator for automatic /home discovery.
933ac7e1-2eb4-4f13-b844-0e14e2aef915Sourcepub const GPT_MS_BASIC_DATA: Self
pub const GPT_MS_BASIC_DATA: Self
Microsoft Basic Data partition type GUID.
Used for NTFS and FAT partitions on GPT disks.
ebd0a0a2-b9e5-4433-87c0-68b6b72699c7Sourcepub const COM_IUNKNOWN: Self
pub const COM_IUNKNOWN: Self
The IUnknown interface GUID.
The fundamental COM interface that all COM objects must implement.
00000000-0000-0000-c000-000000000046Source§impl UUID
impl UUID
Sourcepub const fn duration_to_ticks(
duration: Duration,
) -> Result<u64, DurationToTicksError>
pub const fn duration_to_ticks( duration: Duration, ) -> Result<u64, DurationToTicksError>
Generates an RFC 4122 timestamp from a Duration.
The timestamp represents the number of 100-nanosecond intervals since the Gregorian epoch (1582-10-15 00:00:00 UTC).
§Returns
The number of full 100-ns segments is returned as a u64.
§Errors
DurationToTicksError::TimestampOverflowis returned if the duration corresponds to a value of ( 2^{60} ) or greater, which would overflow the 60 bits available for the timestamp. This occurs for dates beyond 5236-03-31.
Source§impl UUID
impl UUID
Sourcepub const fn hyphenated(self) -> Hyphenated
pub const fn hyphenated(self) -> Hyphenated
Returns a formatter for the hyphenated (standard) format.
This produces the same output as the Display implementation.
§Example
use ps_uuid::UUID;
let uuid = UUID::nil();
assert_eq!(uuid.hyphenated().to_string(), "00000000-0000-0000-0000-000000000000");Source§impl UUID
impl UUID
Sourcepub fn from_parts_dcom(
time_low: u32,
time_mid: u16,
time_hi_and_version: u16,
clock_seq: u16,
node: [u8; 6],
) -> Self
pub fn from_parts_dcom( time_low: u32, time_mid: u16, time_hi_and_version: u16, clock_seq: u16, node: [u8; 6], ) -> Self
Creates a new DCOM UUID with the specified time_low, time_mid, time_hi_and_version,
clock_seq, and node fields.
§Arguments
time_low- The low field of the timestamp (32 bits)time_mid- The middle field of the timestamp (16 bits)time_hi_and_version- The high field of the timestamp and version (16 bits)clock_seq- The clock sequence (14 bits, but passed as 16 bits)node- The node ID (48 bits, passed as 6 bytes)
§Returns
A UUID with the DCOM variant (0b110) set
Source§impl UUID
impl UUID
Sourcepub fn from_parts_ncs(
timestamp: &[u8; 6],
address_family: u8,
address: &[u8; 7],
) -> Self
pub fn from_parts_ncs( timestamp: &[u8; 6], address_family: u8, address: &[u8; 7], ) -> Self
Constructs a new NCS UUID (Variant 0) from pre-computed timestamp bytes, address family, and address.
§Parameters
timestamp: 6-byte timestamp in 4-microsecond units since 1980-01-01 00:00 UTC (big-endian).address_family: Network address family (0-13).address: 7-byte node ID (e.g., extended MAC address or unique host identifier).
§NCS UUID Structure
- Timestamp (48 bits): Raw timestamp bytes in 4-microsecond units since 1980-01-01 00:00 UTC.
- Reserved (16 bits): Set to 0.
- Address Family (8 bits): Network type identifier.
- Node ID (56 bits): Unique host identifier.
§Returns
A new NCS UUID with the specified components.
§Example
let timestamp = [93, 16, 39, 53, 62, 58]; // Pre-computed timestamp bytes
let address = [0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07];
let uuid = ps_uuid::UUID::from_parts_ncs(×tamp, 2, &address);Source§impl UUID
impl UUID
Sourcepub fn from_parts_v1(
time_low: u32,
time_mid: u16,
time_hi: u16,
clock_seq: u16,
node_id: [u8; 6],
) -> Self
pub fn from_parts_v1( time_low: u32, time_mid: u16, time_hi: u16, clock_seq: u16, node_id: [u8; 6], ) -> Self
Build a RFC 4122 version-1 (time-based) UUID from its individual wire-format fields.
Arguments must already be laid out exactly as described in RFC 4122 §4.1 (big-endian/network order):
time_low: 32 least-significant bits of the 60-bit timestamptime_mid: next 16 bits of the timestamptime_hi: next 12 bits of the timestamp (upper 4 bits will be overwritten with the version bywith_version)clock_seq: 14-bit clock sequence; the two variant control bits are set bywith_versionnode_id: 48-bit IEEE 802 MAC address (or random host id)
The function never fails; all bit fiddling is guaranteed to be
valid by construction. The returned value satisfies
uuid.version() == Version::Time and
uuid.variant() == Variant::OSF.
Source§impl UUID
impl UUID
Sourcepub const fn from_parts_v3(digest: [u8; 16]) -> Self
pub const fn from_parts_v3(digest: [u8; 16]) -> Self
Builds an RFC-4122 Version-3 UUID from a raw 16-byte MD5 digest.
The caller must supply the digest that results from hashing
namespace.bytes || name. The function overwrites the version and
variant fields via .with_version(3) and returns the finished UUID.
Source§impl UUID
impl UUID
Sourcepub const fn from_parts_v4(bytes: [u8; 16]) -> Self
pub const fn from_parts_v4(bytes: [u8; 16]) -> Self
Constructs a Version 4 (random) UUID from 16 bytes.
The version and variant fields are set according to RFC 4122.
Source§impl UUID
impl UUID
Sourcepub fn from_parts_v5<D>(digest: D) -> Self
pub fn from_parts_v5<D>(digest: D) -> Self
Builds an RFC-4122 Version-5 UUID from a raw 20-byte SHA-1 digest.
The caller must supply the digest that results from hashing
namespace.bytes || name.
The first 16 bytes of the digest are copied into the UUID; the
version and variant fields are then fixed via .with_version(5).
Source§impl UUID
impl UUID
Sourcepub fn from_parts_v6(
time_high: u32,
time_mid: u16,
time_low: u16,
clock_seq: u16,
node_id: [u8; 6],
) -> Self
pub fn from_parts_v6( time_high: u32, time_mid: u16, time_low: u16, clock_seq: u16, node_id: [u8; 6], ) -> Self
Builds an RFC-4122 Version 6 (time-ordered) UUID from its constituent fields.
Timestamp layout (big-endian, network order):
time_high– most-significant 32 bits of the 60-bit timestamptime_mid– next 16 bits of the timestamptime_low– least-significant 12 bits of the timestamp
Remaining fields:
clock_seq– 14-bit clock sequence (high-to-low order)node_id– 48-bit node identifier (usually a MAC address)
The function performs all bit manipulation internally, then calls
.with_version(6) to patch in the version nibble (0b0110) and
the RFC-4122 variant bits (0b10xxxxxx). It never fails.
Source§impl UUID
impl UUID
Sourcepub fn from_parts_v7(unix_ts_ms: u64, rand_a: u16, rand_b: u64) -> Self
pub fn from_parts_v7(unix_ts_ms: u64, rand_a: u16, rand_b: u64) -> Self
Build a Version-7 (time-ordered) UUID from its constituent fields.
Arguments
unix_ts_ms– milliseconds since 1970-01-01 00:00:00 UTC
(only the least-significant 48 bits are used)rand_a– 12 bits of random datarand_b– 62 additional random bits
The function never fails; it masks super-fluous upper bits and then
calls .with_version(7) which patches in both the version nibble
and the RFC-4122 variant.
Source§impl UUID
impl UUID
Sourcepub const fn from_parts_v8(bytes: [u8; 16]) -> Self
pub const fn from_parts_v8(bytes: [u8; 16]) -> Self
Constructs a Version 8 (custom) UUID from 16 bytes.
The version and variant fields are set according to RFC 4122.
Source§impl UUID
impl UUID
Sourcepub fn gen_dcom(node_id: [u8; 6]) -> Result<Self, UuidConstructionError>
pub fn gen_dcom(node_id: [u8; 6]) -> Result<Self, UuidConstructionError>
Generates a new DCOM UUID using the current system time and the provided node ID.
§Arguments
node_id- The node ID (6 bytes)
§Errors
UuidConstructionErroris returned if the system time is out of range.
Source§impl UUID
impl UUID
Sourcepub fn gen_ncs(
address_family: u8,
address: &[u8; 7],
) -> Result<Self, NcsUuidError>
pub fn gen_ncs( address_family: u8, address: &[u8; 7], ) -> Result<Self, NcsUuidError>
Generates a new NCS UUID (Variant 0).
§Errors
This method returns NcsUuidError::TimestampOverflow after 2015.
Source§impl UUID
impl UUID
Sourcepub fn gen_v1() -> Result<Self, UuidConstructionError>
pub fn gen_v1() -> Result<Self, UuidConstructionError>
Generate an RFC 4122 version-1 (time-based) UUID.
The current system time and process-wide NodeId and clock sequence are used.
§Errors
TimestampBeforeEpochis returned if the current time predates 1582-10-15.TimestampOverflowis returned if the current time exceeds 5236-03-31.
Source§impl UUID
impl UUID
Sourcepub fn gen_v6() -> Result<Self, UuidConstructionError>
pub fn gen_v6() -> Result<Self, UuidConstructionError>
Generate an RFC 4122 version-6 (time-ordered) UUID.
The current system time together with the process-wide NodeId
and clock sequence held in the global STATE are used.
§Errors
TimestampBeforeEpochif the current time predates 1582-10-15.TimestampOverflowif the current time exceeds 5236-03-31.
Source§impl UUID
impl UUID
Sourcepub fn gen_v7() -> Result<Self, UuidConstructionError>
pub fn gen_v7() -> Result<Self, UuidConstructionError>
Generate an RFC-4122 Version 7 (Unix-epoch, time-ordered) UUID.
Steps
STATE.next_v7returns a strictly monotonousSystemTime.- That time is converted to a
Durationsince the Unix epoch. - Range checks ensure the 48-bit millisecond field is valid (epoch … ≈ 10889-08-02 05:31:50.655 UTC).
- The remaining 64 random bits (8 bytes) are filled with CSPRNG data.
UUID::new_v7assembles the final UUID and patches version & variant bits.
§Errors
TimestampBeforeEpochif the system clock is before 1970-01-01.TimestampOverflowif the millisecond counter ≥ 2⁴⁸.
Source§impl UUID
impl UUID
Sourcepub fn get_timestamp(&self) -> Option<SystemTime>
pub fn get_timestamp(&self) -> Option<SystemTime>
Extract the embedded timestamp as a SystemTime, if present.
Returns None if the UUID does not encode a timestamp.
Source§impl UUID
impl UUID
Sourcepub fn new_dcom(
timestamp: SystemTime,
node_id: [u8; 6],
) -> Result<Self, UuidConstructionError>
pub fn new_dcom( timestamp: SystemTime, node_id: [u8; 6], ) -> Result<Self, UuidConstructionError>
Creates a new DCOM UUID using the specified timestamp and node ID.
This generates a DCOM UUID following Microsoft’s DCOM specification, which predates RFC 4122 and uses its own format and algorithms.
§Arguments
timestamp- The system time to use for the UUIDnode_id- The node ID (6 bytes)
§Errors
UuidConstructionErroris returned iftimestampis out of range.
Source§impl UUID
impl UUID
Sourcepub fn new_ncs(
timestamp: SystemTime,
address_family: u8,
address: &[u8; 7],
) -> Result<Self, NcsUuidError>
pub fn new_ncs( timestamp: SystemTime, address_family: u8, address: &[u8; 7], ) -> Result<Self, NcsUuidError>
Generates a new NCS UUID (Variant 0) from a timestamp, address family, and node ID.
§Parameters
timestamp: System time for UUID generation.address_family: Network address family (0–13, per NCS specification).address: 7-byte node ID (e.g., extended MAC address or unique host ID).
§NCS UUID Structure
- Timestamp (48 bits): 4-microsecond units since 1980-01-01 00:00 UTC.
- Reserved (16 bits): Set to 0.
- Address Family (8 bits): Network type (0–13).
- Node ID (56 bits): Unique host identifier.
§Returns
Ok(UUID)on success.Err(GenNcsError)if the timestamp is invalid or the address family is out of range.
§Errors
AddressFamilyOutOfRangeis returned ifaddress_familydoesn’t satisfy0..=13TimestampBeforeEpochis returned iftimestampis before1980-01-01TimestampOverflowis returned iftimestampis after2015-09-05T05:58:26.842Z
§Example
use std::time::{SystemTime, Duration};
let time = SystemTime::UNIX_EPOCH + Duration::from_secs(315532800 + 3600);
let uuid = ps_uuid::UUID::new_ncs(time, 2, &[0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07]);Source§impl UUID
impl UUID
Sourcepub fn new_v1(
time: SystemTime,
clock_seq: u16,
node_id: [u8; 6],
) -> Result<Self, UuidConstructionError>
pub fn new_v1( time: SystemTime, clock_seq: u16, node_id: [u8; 6], ) -> Result<Self, UuidConstructionError>
Create an RFC 4122 version-1 (time-based) UUID
from a SystemTime, clock sequence, and a 48-bit node identifier.
§Errors
TimestampBeforeEpochis returned iftimepredates 1582-10-15.TimestampOverflowis returned iftimeexceeds 5236-03-31.
Source§impl UUID
impl UUID
Sourcepub fn new_v2(
domain: u8,
local_id: u32,
time: SystemTime,
clock_seq: u16,
node_id: [u8; 6],
) -> Result<Self, UuidConstructionError>
pub fn new_v2( domain: u8, local_id: u32, time: SystemTime, clock_seq: u16, node_id: [u8; 6], ) -> Result<Self, UuidConstructionError>
Generate a v2 UUID from wall-clock time plus the extra DCE fields.
§Errors
TimestampBeforeEpochis returned iftimepredates 1582-10-15.TimestampOverflowis returned iftimeexceeds 5236-03-31.
Source§impl UUID
impl UUID
Sourcepub fn new_v6(
time: SystemTime,
clock_seq: u16,
node_id: [u8; 6],
) -> Result<Self, UuidConstructionError>
pub fn new_v6( time: SystemTime, clock_seq: u16, node_id: [u8; 6], ) -> Result<Self, UuidConstructionError>
Create an RFC 4122 version-6 (time-ordered) UUID from a
SystemTime, a 14-bit clock sequence and a 48-bit node identifier.
§Errors
TimestampBeforeEpochiftimepredates 1582-10-15.TimestampOverflowif the 60-bit tick counter would overflow.
Source§impl UUID
impl UUID
Sourcepub fn new_v7(timestamp: Duration, random_bytes: [u8; 8]) -> Self
pub fn new_v7(timestamp: Duration, random_bytes: [u8; 8]) -> Self
Build an RFC-4122 Version 7 (Unix-epoch, time-ordered) UUID.
Layout (big-endian, draft RFC “UUID Version 7”, 2022-07-07):
- bytes 0‥=5 – 48-bit Unix epoch timestamp in milliseconds
- bytes 6‥=7 – 12 extra timestamp bits derived from the current
sub-millisecond nanoseconds
- upper nibble of byte 6 is the version (7)
- bytes 8‥=15 – 64 bits of caller-supplied randomness
- two MSBs of byte 8 are the RFC-4122 variant
The timestamp argument expresses the elapsed time since
1970-01-01 00:00:00 UTC (Duration::as_millis() must fit into
48 bits).
random_bytes supplies the final eight random bytes that complete the
128-bit UUID.
The function never fails; any excess upper bits in the timestamp are truncated, and the version (0b0111) and variant (0b10xxxxxx) fields are fixed automatically.
Source§impl UUID
impl UUID
Sourcepub fn new_v8<V: Into<u128>>(value: V) -> Self
pub fn new_v8<V: Into<u128>>(value: V) -> Self
Build an RFC-4122 Version 8 (custom) UUID from any value convertible to u128.
The caller supplies the complete 128-bit payload (in host order). This function:
- Converts the value to a
u128 - Serializes it to big-endian (network order)
- Overwrites the version nibble (bits 48‥=51) with
0b1000 - Overwrites the variant bits (bits 64‥=65) with
0b10 - Leaves all other bits untouched
§Example
use ps_uuid::UUID;
let payload: u128 = 0xDEAD_BEEF_DEAD_BEEF_DEAD_BEEF_DEAD_BEEF;
let uuid = UUID::new_v8(payload);
assert_eq!(uuid.get_version(), Some(8));Source§impl UUID
impl UUID
Sourcepub const fn is_reserved(&self) -> bool
pub const fn is_reserved(&self) -> bool
Returns true if this is a reserved variant UUID.
Sourcepub const fn is_v6(&self) -> bool
pub const fn is_v6(&self) -> bool
Returns true if this is a version 6 (reordered time-based) UUID.
Source§impl UUID
impl UUID
Sourcepub fn system_time_to_ticks(
time: SystemTime,
) -> Result<u64, UuidConstructionError>
pub fn system_time_to_ticks( time: SystemTime, ) -> Result<u64, UuidConstructionError>
Converts a SystemTime into an RFC 4122 timestamp (ticks).
§Arguments
time- TheSystemTimeto convert.
§Returns
The number of 100-nanosecond intervals between the Gregorian epoch
(1582-10-15) and the provided time.
§Errors
UuidConstructionError::TimestampBeforeEpochiftimeis before the Gregorian epoch.UuidConstructionError::TimestampOverflowiftimeis so far in the future that the tick count exceeds ( 2^{60} - 1 ).
Trait Implementations§
Source§impl AddAssign<&UUID> for UUID
impl AddAssign<&UUID> for UUID
Source§fn add_assign(&mut self, rhs: &Self)
fn add_assign(&mut self, rhs: &Self)
+= operation. Read moreSource§impl<T: IntOperand> AddAssign<T> for UUID
impl<T: IntOperand> AddAssign<T> for UUID
Source§fn add_assign(&mut self, rhs: T)
fn add_assign(&mut self, rhs: T)
+= operation. Read moreSource§impl AddAssign for UUID
impl AddAssign for UUID
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
+= operation. Read moreSource§impl BitAndAssign<&UUID> for UUID
impl BitAndAssign<&UUID> for UUID
Source§fn bitand_assign(&mut self, rhs: &Self)
fn bitand_assign(&mut self, rhs: &Self)
&= operation. Read moreSource§impl<T: IntOperand> BitAndAssign<T> for UUID
impl<T: IntOperand> BitAndAssign<T> for UUID
Source§fn bitand_assign(&mut self, rhs: T)
fn bitand_assign(&mut self, rhs: T)
&= operation. Read moreSource§impl BitAndAssign for UUID
impl BitAndAssign for UUID
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&= operation. Read moreSource§impl BitOrAssign<&UUID> for UUID
impl BitOrAssign<&UUID> for UUID
Source§fn bitor_assign(&mut self, rhs: &Self)
fn bitor_assign(&mut self, rhs: &Self)
|= operation. Read moreSource§impl<T: IntOperand> BitOrAssign<T> for UUID
impl<T: IntOperand> BitOrAssign<T> for UUID
Source§fn bitor_assign(&mut self, rhs: T)
fn bitor_assign(&mut self, rhs: T)
|= operation. Read moreSource§impl BitOrAssign for UUID
impl BitOrAssign for UUID
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|= operation. Read moreSource§impl BitXorAssign<&UUID> for UUID
impl BitXorAssign<&UUID> for UUID
Source§fn bitxor_assign(&mut self, rhs: &Self)
fn bitxor_assign(&mut self, rhs: &Self)
^= operation. Read moreSource§impl<T: IntOperand> BitXorAssign<T> for UUID
impl<T: IntOperand> BitXorAssign<T> for UUID
Source§fn bitxor_assign(&mut self, rhs: T)
fn bitxor_assign(&mut self, rhs: T)
^= operation. Read moreSource§impl BitXorAssign for UUID
impl BitXorAssign for UUID
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^= operation. Read moreSource§impl DivAssign<&UUID> for UUID
impl DivAssign<&UUID> for UUID
Source§fn div_assign(&mut self, rhs: &Self)
fn div_assign(&mut self, rhs: &Self)
/= operation. Read moreSource§impl<T: IntOperand> DivAssign<T> for UUID
impl<T: IntOperand> DivAssign<T> for UUID
Source§fn div_assign(&mut self, rhs: T)
fn div_assign(&mut self, rhs: T)
/= operation. Read moreSource§impl DivAssign for UUID
impl DivAssign for UUID
Source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
/= operation. Read moreSource§impl From<Hyphenated> for UUID
impl From<Hyphenated> for UUID
Source§fn from(hyphenated: Hyphenated) -> Self
fn from(hyphenated: Hyphenated) -> Self
Source§impl FromStr for UUID
impl FromStr for UUID
Source§fn from_str(s: &str) -> Result<Self, Self::Err>
fn from_str(s: &str) -> Result<Self, Self::Err>
Accept every standard UUID spelling:
- canonical 36-byte form
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx - 32 hex digits without hyphens
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx - surrounded by braces
{…}(either of the above) - as an URN
urn:uuid:<canonical>
Source§type Err = UuidParseError
type Err = UuidParseError
Source§impl MulAssign<&UUID> for UUID
impl MulAssign<&UUID> for UUID
Source§fn mul_assign(&mut self, rhs: &Self)
fn mul_assign(&mut self, rhs: &Self)
*= operation. Read moreSource§impl<T: IntOperand> MulAssign<T> for UUID
impl<T: IntOperand> MulAssign<T> for UUID
Source§fn mul_assign(&mut self, rhs: T)
fn mul_assign(&mut self, rhs: T)
*= operation. Read moreSource§impl MulAssign for UUID
impl MulAssign for UUID
Source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
*= operation. Read moreSource§impl Ord for UUID
impl Ord for UUID
Source§impl PartialOrd for UUID
impl PartialOrd for UUID
Source§impl RemAssign<&UUID> for UUID
impl RemAssign<&UUID> for UUID
Source§fn rem_assign(&mut self, rhs: &Self)
fn rem_assign(&mut self, rhs: &Self)
%= operation. Read moreSource§impl<T: IntOperand> RemAssign<T> for UUID
impl<T: IntOperand> RemAssign<T> for UUID
Source§fn rem_assign(&mut self, rhs: T)
fn rem_assign(&mut self, rhs: T)
%= operation. Read moreSource§impl RemAssign for UUID
impl RemAssign for UUID
Source§fn rem_assign(&mut self, rhs: Self)
fn rem_assign(&mut self, rhs: Self)
%= operation. Read moreSource§impl<T: ShiftAmount> ShlAssign<T> for UUID
impl<T: ShiftAmount> ShlAssign<T> for UUID
Source§fn shl_assign(&mut self, rhs: T)
fn shl_assign(&mut self, rhs: T)
<<= operation. Read moreSource§impl<T: ShiftAmount> ShrAssign<T> for UUID
impl<T: ShiftAmount> ShrAssign<T> for UUID
Source§fn shr_assign(&mut self, rhs: T)
fn shr_assign(&mut self, rhs: T)
>>= operation. Read moreSource§impl SubAssign<&UUID> for UUID
impl SubAssign<&UUID> for UUID
Source§fn sub_assign(&mut self, rhs: &Self)
fn sub_assign(&mut self, rhs: &Self)
-= operation. Read moreSource§impl<T: IntOperand> SubAssign<T> for UUID
impl<T: IntOperand> SubAssign<T> for UUID
Source§fn sub_assign(&mut self, rhs: T)
fn sub_assign(&mut self, rhs: T)
-= operation. Read moreSource§impl SubAssign for UUID
impl SubAssign for UUID
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
-= operation. Read more