#[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).
See the GUID structure documentation.
Fields§
§data1: u32The first eight hexadecimal digits.
data2: u16The second group of four hexadecimal digits.
data3: u16The third group of four hexadecimal digits.
data4: [u8; 8]The final two groups of four and twelve hexadecimal digits.
Implementations§
Source§impl GUID
impl GUID
Sourcepub const fn from_values(
data1: u32,
data2: u16,
data3: u16,
data4: [u8; 8],
) -> GUID
pub const fn from_values( data1: u32, data2: u16, data3: u16, data4: [u8; 8], ) -> GUID
Creates a GUID with the given constant values.
Sourcepub const fn from_signature(signature: ConstBuffer) -> GUID
pub const fn from_signature(signature: ConstBuffer) -> GUID
Creates a GUID for a “generic” WinRT type.
Trait 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 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