Trait json_ld::Generator

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

Subject identifier generator, with metadata.

Required Methods§

source

fn next(&mut self, namespace: &mut N) -> Meta<<N as Namespace>::Id, M>

Implementations on Foreign Types§

source§

impl<'a, N, M, G> MetaGenerator<N, M> for &'a mut Gwhere N: Namespace, G: MetaGenerator<N, M>,

source§

fn next(&mut self, namespace: &mut N) -> Meta<<N as Namespace>::Id, M>

Implementors§

source§

impl<N, G, M> MetaGenerator<N, M> for WithMetadata<G, M>where N: Namespace, G: Generator<N>, M: Clone,