pub struct Factory { /* private fields */ }Expand description
Factory of XID instances. Initializes dependencies once to avoid reallocating them on each ID generation.
Design Pattern
You can read more on the Factory design pattern here on Refactoring.guru
Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Factory
impl Send for Factory
impl Sync for Factory
impl Unpin for Factory
impl UnwindSafe for Factory
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