#[repr(C)]pub struct Guid(pub u32, pub u16, pub u16, pub [u8; 8]);Tuple Fields§
§0: u32§1: u16§2: u16§3: [u8; 8]Implementations§
Source§impl Guid
impl Guid
Sourcepub const fn parse_str(literal: &str) -> Guid
pub const fn parse_str(literal: &str) -> Guid
Converts a string literal to a GUID.
The string must be in the form “XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX”. Hex digits may be either upper case or lower case.
§Panics
Panics if the string literal is not in the standard form or contains a value that is not a hex digit.
pub fn kind(&self) -> GuidKind
👎Deprecated: compare
Guids directlyTrait Implementations§
impl Copy for Guid
impl Eq 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 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