#[repr(C)]
pub struct Guid { pub time_low: [u8; 4], pub time_mid: [u8; 2], pub time_high_and_version: [u8; 2], pub clock_seq_high_and_reserved: u8, pub clock_seq_low: u8, pub node: [u8; 6], }
Expand description

Globally-unique identifier.

The format is described in Appendix A of the UEFI Specification. Note that the first three fields are little-endian.

Fields

time_low: [u8; 4]

The little-endian low field of the timestamp.

time_mid: [u8; 2]

The little-endian middle field of the timestamp.

time_high_and_version: [u8; 2]

The little-endian high field of the timestamp multiplexed with the version number.

clock_seq_high_and_reserved: u8

The high field of the clock sequence multiplexed with the variant.

clock_seq_low: u8

The low field of the clock sequence.

node: [u8; 6]

The spatially unique node identifier.

Implementations

GUID with all fields set to zero.

Create a new GUID.

Parse a GUID from a string.

This is functionally the same as Guid::from_str, but is exposed separately to provide a const method for parsing.

Create a GUID from a 16-byte array. No changes to byte order are made.

Convert to a 16-byte array.

Convert to a lower-case hex ASCII string.

The output is in “xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx” format.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Formats the value using the given formatter. Read more

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Self must have the same layout as the specified Bits except for the possible invalid bit patterns being checked during is_valid_bit_pattern. Read more

If this function returns true, then it must be valid to reinterpret bits as &Self.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.