[−][src]Struct intercom_common::guid::GUID
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
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]
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]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,