Guid
struct · ferroui-splat · v0.5.0
struct Guid
A 128-bit identifier (System.Guid), written as xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.
Deprecated: the feature usage tracking takes and returns a Uuid of the uuid crate, the
identifier type of the workspace (docs/idiomatic-rust.md); the two convert into each other
with From. Guid::EMPTY is Uuid::nil, Guid::new_guid is Uuid::new_v4,
Guid::from_u128 and Guid::as_u128 are the methods of the same names, and the text is
the same.
Deprecated since 0.5.0. use
uuid::Uuid:EMPTYisUuid::nil(),new_guid()isUuid::new_v4(); convert withUuid::from(guid)
Members
EMPTY
const EMPTY: Guid
The identifier whose bits are all zero (Guid.Empty).
new_guid
fn new_guid() -> Self
A new random identifier of version 4 (Guid.NewGuid), from the random generator of the
system.
from_u128
const fn from_u128(value: u128) -> Self
The identifier of the 128 bits value.
as_u128
const fn as_u128(self: &Self) -> u128
The 128 bits of the identifier.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedToStringCloneCopyDebugDefaultStructuralPartialEqPartialEqEqHashPartialOrdOrdFrom<Uuid>From<Guid>Display
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.