Lines Matching full:guid
4 #[cfg(feature = "guid")]
6 /// Attempts to create a [`Uuid`] from a little endian winapi `GUID`
9 pub fn from_guid(guid: guiddef::GUID) -> Result<Uuid, crate::Error> { in from_guid()
11 guid.Data1 as u32, in from_guid()
12 guid.Data2 as u16, in from_guid()
13 guid.Data3 as u16, in from_guid()
14 &(guid.Data4 as [u8; 8]), in from_guid()
18 /// Converts a [`Uuid`] into a little endian winapi `GUID`
21 pub fn to_guid(&self) -> guiddef::GUID { in to_guid() argument
24 guiddef::GUID { in to_guid()
33 #[cfg(feature = "guid")]
43 let guid = guiddef::GUID { in test_from_guid() localVariable
50 let uuid = Uuid::from_guid(guid).unwrap(); in test_from_guid()
59 let guid_in = guiddef::GUID { in test_guid_roundtrip()