pub struct Uuid {
pub part1: u32,
pub part2: u16,
pub part3: u16,
pub part4: u16,
pub part5: u64,
}Expand description
Universally unique identifier (UUID).
Fields§
§part1: u32§part2: u16§part3: u16§part4: u16§part5: u64Implementations§
Source§impl Uuid
impl Uuid
Sourcepub fn from_be_bytes(data: &[u8]) -> Self
pub fn from_be_bytes(data: &[u8]) -> Self
Reads a big-endian UUID from a byte sequence.
Sourcepub fn from_le_bytes(data: &[u8]) -> Self
pub fn from_le_bytes(data: &[u8]) -> Self
Reads a little-endian UUID from a byte sequence.
Sourcepub fn is_max(&self) -> bool
pub fn is_max(&self) -> bool
Determines if the UUID is the Max (or Omni) UUID (ffffffff-ffff-ffff-ffff-ffffffffffff)
Sourcepub fn is_nil(&self) -> bool
pub fn is_nil(&self) -> bool
Determines if the UUID is the Nil UUID (00000000-0000-0000-0000-000000000000)
Sourcepub fn from_string(&mut self, string: &str) -> Result<(), ParseError>
pub fn from_string(&mut self, string: &str) -> Result<(), ParseError>
Reads an UUID from a string.
Trait Implementations§
impl Eq for Uuid
impl StructuralPartialEq for Uuid
Auto Trait Implementations§
impl Freeze for Uuid
impl RefUnwindSafe for Uuid
impl Send for Uuid
impl Sync for Uuid
impl Unpin for Uuid
impl UnsafeUnpin for Uuid
impl UnwindSafe for Uuid
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more