pub trait Generator<N: Namespace> {
    // Required method
    fn next(&mut self, namespace: &mut N) -> N::Id;
}
Expand description

Subject identifier generator.

Required Methods§

source

fn next(&mut self, namespace: &mut N) -> N::Id

Generates the next fresh identifier in the given namespace.

Implementations on Foreign Types§

source§

impl<'a, N: Namespace, G: Generator<N>> Generator<N> for &'a mut G

source§

fn next(&mut self, namespace: &mut N) -> N::Id

Implementors§

source§

impl<'a, 'v, G: Generator<V>, V: VocabularyMut, S> Generator<Scoped<'v, V, S>> for Unscoped<'a, G>where V::BlankId: Clone,

source§

impl<V: Vocabulary + BlankIdVocabularyMut> Generator<V> for Blank