[−][src]Struct winstructs::guid::Guid
https://docs.microsoft.com/en-us/previous-versions/aa373931(v%3Dvs.80)
Example
let raw_guid: &[u8] = &[0x25, 0x96, 0x84, 0x54, 0x78, 0x54, 0x94, 0x49, 0xa5, 0xba, 0x3e, 0x3b, 0x3, 0x28, 0xc3, 0xd]; let guid = Guid::from_buffer(raw_guid).unwrap(); assert_eq!(format!("{}", guid), "54849625-5478-4994-A5BA-3E3B0328C30D");
Methods
impl Guid
[src]
pub fn new(data1: u32, data2: u16, data3: u16, data4: [u8; 8]) -> Guid
[src]
Creates a new GUID directly from it's components.
pub fn from_buffer(buffer: &[u8]) -> Result<Guid>
[src]
Reads a GUID from a buffer.
pub fn from_stream<T: Read>(stream: &mut T) -> Result<Guid>
[src]
Deprecated:
use from_reader
pub fn from_reader<T: Read>(stream: &mut T) -> Result<Guid>
[src]
Reads a GUID from a Read
instance.
Trait Implementations
impl Clone for Guid
[src]
impl Debug for Guid
[src]
impl Display for Guid
[src]
impl PartialEq<Guid> for Guid
[src]
impl PartialOrd<Guid> for Guid
[src]
fn partial_cmp(&self, other: &Guid) -> Option<Ordering>
[src]
fn lt(&self, other: &Guid) -> bool
[src]
fn le(&self, other: &Guid) -> bool
[src]
fn gt(&self, other: &Guid) -> bool
[src]
fn ge(&self, other: &Guid) -> bool
[src]
impl Serialize for Guid
[src]
For GUIDs, a string representation is preferable to a struct for serialization.
impl StructuralPartialEq for Guid
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,