Struct intercom_common::guid::GUID
source · [−]Expand description
Binary GUID format as defined for the COM interfaces.
Fields
data1: u32
data2: u16
data3: u16
data4: [u8; 8]
Implementations
sourceimpl GUID
impl GUID
pub fn zero_guid() -> GUID
sourcepub fn parse(guid: &str) -> Result<GUID, String>
pub fn parse(guid: &str) -> Result<GUID, String>
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
pub fn as_bytes(&self) -> &[u8; 16]
Trait Implementations
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 · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.