Struct simple_uuid::Layout [−][src]
pub struct Layout {
pub field_low: u32,
pub field_mid: u16,
pub field_high_and_version: u16,
pub clock_seq_high_and_reserved: u8,
pub clock_seq_low: u8,
pub node: Node,
}The UUID format is 16 octets.
Fields
field_low: u32The low field of the Timestamp.
field_mid: u16The mid field of the Timestamp.
field_high_and_version: u16The high field of the Timestamp multiplexed with the version number.
clock_seq_high_and_reserved: u8The high field of the ClockSeq multiplexed with the variant.
clock_seq_low: u8The low field of the ClockSeq.
node: NodeIEEE 802 MAC-address.
Implementations
impl Layout[src]
impl Layout[src]pub fn be_fields(&self) -> (u32, u16, u16, u16, Node)[src]
pub fn be_fields(&self) -> (u32, u16, u16, u16, Node)[src]Returns the five field values of the UUID in big-endian order.
pub fn as_fields(&self) -> (u32, u16, u16, u16, Node)[src]
pub fn as_fields(&self) -> (u32, u16, u16, u16, Node)[src]Returns the five field values of the UUID in little-endian order.
pub fn be_bytes(&self) -> UUID[src]
pub fn be_bytes(&self) -> UUID[src]Return the memory representation of the UUID in big-endian order .
pub fn as_bytes(&self) -> UUID[src]
pub fn as_bytes(&self) -> UUID[src]Return the memory representation of the UUID in little-endian order .
pub fn get_version(&self) -> Option<Version>[src]
pub fn get_version(&self) -> Option<Version>[src]Version of the current generated UUID.
pub fn get_variant(&self) -> Option<Variant>[src]
pub fn get_variant(&self) -> Option<Variant>[src]Variant field of the current generated UUID.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Layout
impl Send for Layout
impl Sync for Layout
impl Unpin for Layout
impl UnwindSafe for Layout
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,