Struct minidump_common::format::GUID
source · [−]Expand description
A GUID as specified in Rpcdce.h
Matches the Microsoft struct of the same name.
Display
There are two Display
implementations for GUIDs. The regular formatting is lowercase with
hyphens. The alternate formatting used with #
is the symbol server format (uppercase without
hyphens).
use minidump_common::format::GUID;
let guid = GUID { data1: 10, data2: 11, data3: 12, data4: [1,2,3,4,5,6,7,8]};
// default formatting
assert_eq!("0000000a-000b-000c-0102-030405060708", guid.to_string());
// symbol server formatting
assert_eq!("0000000A000B000C0102030405060708", format!("{:#}", guid));
Fields
data1: u32
data2: u16
data3: u16
data4: [u8; 8]
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 · sourcefn borrow_mut(&mut self) -> &mut T
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.
sourcefn clone_into(&self, target: &mut T)
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