Expand description
A globally unique identifier (GUID) used to identify COM and WinRT interfaces.
Fields
data1: u32data2: u16data3: u16data4: [u8; 8]Implementations
impl GUID
impl GUID
pub const fn zeroed() -> Self
pub const fn zeroed() -> Self
Creates a GUID represented by the all-zero byte-pattern.
pub const fn from_values(
data1: u32,
data2: u16,
data3: u16,
data4: [u8; 8]
) -> Self
pub const fn from_values(
data1: u32,
data2: u16,
data3: u16,
data4: [u8; 8]
) -> Self
Creates a GUID with the given constant values.
pub const fn from_signature(signature: ConstBuffer) -> Self
pub const fn from_signature(signature: ConstBuffer) -> Self
Creates a GUID for a “generic” WinRT type.
Trait Implementations
impl Copy for GUID
impl Eq for GUID
impl StructuralEq for GUID
impl StructuralPartialEq for GUID
Auto Trait Implementations
impl RefUnwindSafe for GUID
impl Send for GUID
impl Sync for GUID
impl Unpin for GUID
impl UnwindSafe for GUID
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more