pub trait Generator<V: IriVocabulary + BlankIdVocabulary = ()> {
    // 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 node identifier in the given vocabulary.

Implementations on Foreign Types§

source§

impl<'a, V: IriVocabulary + BlankIdVocabulary, G: Generator<V>> Generator<V> for &'a mut G

source§

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

Implementors§