pub struct Guid(/* private fields */);Expand description
A 22-character IFC GlobalId.
Implementations§
Source§impl Guid
impl Guid
Sourcepub fn parse(text: &str) -> Option<Self>
pub fn parse(text: &str) -> Option<Self>
Wrap 22 ASCII characters, validating the alphabet and the range.
22 base-64 digits carry 132 bits and a UUID has 128, so the leading
digit holds only the top 2 bits and must be 0–3. A higher leading
digit names no UUID: accepting it would let two distinct texts expand
to the same UUID in to_uuid. Every accepted Guid
therefore round-trips through to_uuid/from_uuid unchanged.
Trait Implementations§
impl Copy for Guid
impl Eq for Guid
Source§impl Ord for Guid
impl Ord for Guid
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Guid
impl PartialOrd for Guid
impl StructuralPartialEq for Guid
Auto Trait Implementations§
impl Freeze for Guid
impl RefUnwindSafe for Guid
impl Send for Guid
impl Sync for Guid
impl Unpin for Guid
impl UnsafeUnpin for Guid
impl UnwindSafe for Guid
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