Skip to main content

RdfQuads

Trait RdfQuads 

Source
pub trait RdfQuads<T, B> {
    // Required method
    fn rdf_quads_full<'a, V, G>(
        &'a self,
        vocabulary: &'a mut V,
        generator: &'a mut G,
        rdf_direction: Option<RdfDirection>,
        produce_generalized_rdf: bool,
    ) -> Quads<'a, V, G> ⓘ
       where V: Vocabulary<Iri = T, BlankId = B>,
             G: LocalGenerator;

    // Provided methods
    fn rdf_quads_with<'a, V, G>(
        &'a self,
        vocabulary: &'a mut V,
        generator: &'a mut G,
        rdf_direction: Option<RdfDirection>,
    ) -> Quads<'a, V, G> ⓘ
       where V: Vocabulary<Iri = T, BlankId = B>,
             G: LocalGenerator { ... }
    fn rdf_quads<'a, G>(
        &'a self,
        generator: &'a mut G,
        rdf_direction: Option<RdfDirection>,
    ) -> Quads<'a, (), G> ⓘ
       where G: LocalGenerator,
             (): Vocabulary<Iri = T, BlankId = B> { ... }
}
Expand description

Documents that can be serialized as RDF quads.

Required Methods§

Source

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

Returns the RDF quads of this document, taking every parameter explicitly.

Provided Methods§

Source

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

Returns the RDF quads of this document, using the given vocabulary.

Source

fn rdf_quads<'a, G>( &'a self, generator: &'a mut G, rdf_direction: Option<RdfDirection>, ) -> Quads<'a, (), G> ⓘ
where G: LocalGenerator, (): Vocabulary<Iri = T, BlankId = B>,

Returns the RDF quads of this document.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

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

Source§

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

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,