pub struct IdGenerator { /* private fields */ }Implementations§
Source§impl IdGenerator
impl IdGenerator
pub fn get_instance() -> &'static Mutex<IdGenerator>
pub fn get_id() -> String
pub fn get_next_id(&mut self) -> String
Auto Trait Implementations§
impl Freeze for IdGenerator
impl RefUnwindSafe for IdGenerator
impl Send for IdGenerator
impl Sync for IdGenerator
impl Unpin for IdGenerator
impl UnwindSafe for IdGenerator
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