[][src]Struct sunrise_fs::detail::gpt::RawUUID

#[repr(C)]pub struct RawUUID {
    pub d1: u32,
    pub d2: u16,
    pub d3: u16,
    pub d4: [u8; 8],
}

A raw uuid representation.

Fields

d1: u32

Low part.

d2: u16

Mid part.

d3: u16

High part and version.

d4: [u8; 8]

Node.

Implementations

impl RawUUID[src]

pub fn from_fields(d1: u32, d2: u16, d3: u16, d4: [u8; 8]) -> Self[src]

Create a RawUUID from raw parts

pub fn to_uuid(self) -> Uuid[src]

Convert to a UUID instance.

pub fn from_uuid(uuid: Uuid) -> Self[src]

Convert a UUID to a RawUUID.

pub fn from_slice_le(data: &[u8]) -> Self[src]

Create a RawUUID from a little endian slice of bytes.

pub fn to_bytes_le(&self) -> [u8; 16][src]

Convert to a little endian byte array.

Trait Implementations

impl Clone for RawUUID[src]

impl Copy for RawUUID[src]

impl Debug for RawUUID[src]

impl Default for RawUUID[src]

impl Eq for RawUUID[src]

impl PartialEq<RawUUID> for RawUUID[src]

impl StructuralEq for RawUUID[src]

impl StructuralPartialEq for RawUUID[src]

Auto Trait Implementations

impl RefUnwindSafe for RawUUID

impl Send for RawUUID

impl Sync for RawUUID

impl Unpin for RawUUID

impl UnwindSafe for RawUUID

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SizedIPCBuffer for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.