Struct GUID
#[repr(C)]pub struct GUID {
pub data1: u32,
pub data2: u16,
pub data3: u16,
pub data4: [u8; 8],
}
Expand description
A globally unique identifier (GUID) used to identify COM and WinRT interfaces.
Fields§
§data1: u32
Specifies the first 8 hexadecimal digits.
data2: u16
Specifies the first group of 4 hexadecimal digits.
data3: u16
Specifies the second group of 4 hexadecimal digits.
data4: [u8; 8]
The first 2 bytes contain the third group of 4 hexadecimal digits. The remaining 6 bytes contain the final 12 hexadecimal digits.
Implementations§
Trait Implementations§
Source§impl GuidExt for GUID
impl GuidExt for GUID
Source§fn format_simple(&self) -> String
fn format_simple(&self) -> String
Formats the GUID as a simple hex string.
Source§fn format_hyphenated(&self) -> String
fn format_hyphenated(&self) -> String
Formats the GUID as a hyphenated hex string.
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