pub struct Uuid(/* private fields */);Implementations§
Source§impl Uuid
impl Uuid
pub const fn as_u128(&self) -> u128
pub const fn as_bytes(&self) -> &[u8; 16]
pub const fn into_bytes(self) -> [u8; 16]
pub fn parse_str(input: &str) -> Result<Uuid, u8>
pub const fn from_bytes(bytes: [u8; 16]) -> Uuid
pub const fn from_u128(number: u128) -> Uuid
pub fn to_string(&self) -> String
Trait Implementations§
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