Trait json_ld::RdfQuads

source ·
pub trait RdfQuads<T, B> {
    // Required method
    fn rdf_quads_full<'n, 'g, V, G>(
        &self,
        vocabulary: &'n mut V,
        generator: &'g mut G,
        rdf_direction: Option<RdfDirection>,
        produce_generalized_rdf: bool,
    ) -> Quads<'_, 'n, 'g, V, G> 
       where V: Vocabulary<Iri = T, BlankId = B>,
             G: Generator<V>;

    // Provided methods
    fn rdf_quads_with<'n, 'g, V, G>(
        &self,
        vocabulary: &'n mut V,
        generator: &'g mut G,
        rdf_direction: Option<RdfDirection>,
    ) -> Quads<'_, 'n, 'g, V, G> 
       where V: Vocabulary<Iri = T, BlankId = B>,
             G: Generator<V> { ... }
    fn rdf_quads<'g, G>(
        &self,
        generator: &'g mut G,
        rdf_direction: Option<RdfDirection>,
    ) -> Quads<'_, 'static, 'g, (), G> 
       where G: Generator,
             (): Vocabulary<Iri = T, BlankId = B> { ... }
}

Required Methods§

source

fn rdf_quads_full<'n, 'g, V, G>( &self, vocabulary: &'n mut V, generator: &'g mut G, rdf_direction: Option<RdfDirection>, produce_generalized_rdf: bool, ) -> Quads<'_, 'n, 'g, V, G>
where V: Vocabulary<Iri = T, BlankId = B>, G: Generator<V>,

Provided Methods§

source

fn rdf_quads_with<'n, 'g, V, G>( &self, vocabulary: &'n mut V, generator: &'g mut G, rdf_direction: Option<RdfDirection>, ) -> Quads<'_, 'n, 'g, V, G>
where V: Vocabulary<Iri = T, BlankId = B>, G: Generator<V>,

source

fn rdf_quads<'g, G>( &self, generator: &'g mut G, rdf_direction: Option<RdfDirection>, ) -> Quads<'_, 'static, 'g, (), G>
where G: Generator, (): Vocabulary<Iri = T, BlankId = B>,

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T, B> RdfQuads<T, B> for Vec<Indexed<Node<T, B>>>

source§

fn rdf_quads_full<'n, 'g, V, G>( &self, vocabulary: &'n mut V, generator: &'g mut G, rdf_direction: Option<RdfDirection>, produce_generalized_rdf: bool, ) -> Quads<'_, 'n, 'g, V, G>
where V: Vocabulary<Iri = T, BlankId = B>, G: Generator<V>,

Implementors§

source§

impl<T, B> RdfQuads<T, B> for ExpandedDocument<T, B>

source§

impl<T, B> RdfQuads<T, B> for NodeMap<T, B>
where T: Eq + Hash, B: Eq + Hash,