[][src]Struct intercom_common::guid::GUID

#[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: u32data2: u16data3: u16data4: [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

pub fn as_bytes(&self) -> &[u8; 16][src]

Trait Implementations

impl Eq for GUID[src]

impl Default for GUID[src]

impl Clone for GUID[src]

impl PartialEq<GUID> for GUID[src]

impl Debug 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.

impl LowerHex for GUID[src]

fn fmt(&self, f: &mut Formatter) -> Result[src]

Formats the GUID in brace-hyphenated format for display.

impl UpperHex for GUID[src]

fn fmt(&self, f: &mut Formatter) -> Result[src]

Formats the GUID in brace-hyphenated format for display.

Auto Trait Implementations

impl Sync for GUID

impl Send for GUID

impl Unpin for GUID

impl UnwindSafe for GUID

impl RefUnwindSafe for GUID

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]