pub trait Generator<V: Vocabulary> {
    // Required method
    fn next(&mut self, vocabulary: &mut V) -> Id<V::Iri, V::BlankId>;
}
Expand description

Subject identifier generator.

Required Methods§

source

fn next(&mut self, vocabulary: &mut V) -> Id<V::Iri, V::BlankId>

Generates the next fresh identifier in the given vocabulary.

Implementations on Foreign Types§

source§

impl<'a, V: Vocabulary, G: Generator<V>> Generator<V> for &'a mut G

source§

fn next(&mut self, vocabulary: &mut V) -> Id<V::Iri, V::BlankId>

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