pub struct Generator { /* private fields */ }
Implementations§
Source§impl Generator
impl Generator
pub fn new() -> Generator
pub fn next(&self) -> [u8; 24]
pub fn hex128_as_str<'a>( &self, buffer: &'a mut [u8; 36], ) -> Result<&'a str, Box<dyn Error>>
pub unsafe fn hex128_as_str_unchecked<'a>( &self, buffer: &'a mut [u8; 36], ) -> &'a str
pub unsafe fn hex128_as_string_unchecked(&self) -> String
pub fn hex128_as_string(&self) -> Result<String, Box<dyn Error>>
pub fn is_valid_hex128(uuid: &str) -> bool
Auto Trait Implementations§
impl !Freeze for Generator
impl RefUnwindSafe for Generator
impl Send for Generator
impl Sync for Generator
impl Unpin for Generator
impl UnwindSafe for Generator
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