pub struct Unscoped<'a, G>(pub &'a mut G);Expand description
Wrapper around a generator to work with vocabulary::Scoped.
Any generator for some vocabulary V can be wrapped around Unscoped to
work with vocabulary::Scoped<V>.
As the name implies, the identifier generated by such generator will
escape the scope of vocabulary::Scoped. This means that a collision can
still occur if multiple generators are used on the same vocabulary, even
wrapped inside different vocabulary::Scoped.
Tuple Fields§
§0: &'a mut GTrait Implementations§
Auto Trait Implementations§
impl<'a, G> RefUnwindSafe for Unscoped<'a, G>where G: RefUnwindSafe,
impl<'a, G> Send for Unscoped<'a, G>where G: Send,
impl<'a, G> Sync for Unscoped<'a, G>where G: Sync,
impl<'a, G> Unpin for Unscoped<'a, G>
impl<'a, G> !UnwindSafe for Unscoped<'a, G>
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