Struct intercom::GUID
[−]
[src]
#[repr(C)]pub struct GUID { pub data1: u32, pub data2: u16, pub data3: u16, pub data4: [u8; 8], }
Binary GUID format as defined for the COM interfaces.
Fields
data1: u32
data2: u16
data3: u16
data4: [u8; 8]
Methods
impl GUID
[src]
pub fn zero_guid() -> GUID
[src]
pub fn parse(guid: &str) -> Result<GUID, String>
[src]
Parses the given string as a GUID.
Supported formats include:
- Braces and hyphens: {00000000-0000-0000-0000-000000000000}
- Hyphens only: 00000000-0000-0000-0000-000000000000
- Raw hexadecimal: 00000000000000000000000000000000
Trait Implementations
impl Eq for GUID
[src]
impl PartialEq for GUID
[src]
fn eq(&self, __arg_0: &GUID) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &GUID) -> bool
[src]
This method tests for !=
.
impl Debug for GUID
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for GUID
[src]
fn clone(&self) -> GUID
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for GUID
[src]
impl Display for GUID
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the GUID in brace-hyphenated format for display.