pub enum CompoundValueTriples<'a, T, B, L> {
Literal(Box<CompoundLiteralTriples<T, B, L>>),
List(ListTriples<'a, T, B, L>),
}Expand description
Triples describing a compound RDF value.
Variants§
Literal(Box<CompoundLiteralTriples<T, B, L>>)
An RDF literal.
List(ListTriples<'a, T, B, L>)
A list object.
Implementations§
Source§impl<'a, T, B, L> CompoundValueTriples<'a, T, B, L>
impl<'a, T, B, L> CompoundValueTriples<'a, T, B, L>
Sourcepub fn literal(l: CompoundLiteralTriples<T, B, L>) -> Self
pub fn literal(l: CompoundLiteralTriples<T, B, L>) -> Self
Builds the triples of a JSON literal.
Sourcepub fn with<'n, V: Vocabulary<Iri = T, BlankId = B, Literal = L>, G: LocalGenerator>(
self,
vocabulary: &'n mut V,
generator: G,
rdf_direction: Option<RdfDirection>,
) -> CompoundValueTriplesWith<'a, 'n, V, G> ⓘ
pub fn with<'n, V: Vocabulary<Iri = T, BlankId = B, Literal = L>, G: LocalGenerator>( self, vocabulary: &'n mut V, generator: G, rdf_direction: Option<RdfDirection>, ) -> CompoundValueTriplesWith<'a, 'n, V, G> ⓘ
Binds this iterator to a vocabulary and generator.
Sourcepub fn next<V, G: LocalGenerator>(
&mut self,
vocabulary: &mut V,
generator: &mut G,
rdf_direction: Option<RdfDirection>,
) -> Option<Triple<T, B, L>>where
T: Clone,
B: Clone,
L: Clone,
V: Vocabulary<Iri = T, BlankId = B, Literal = L> + VocabularyMut,
pub fn next<V, G: LocalGenerator>(
&mut self,
vocabulary: &mut V,
generator: &mut G,
rdf_direction: Option<RdfDirection>,
) -> Option<Triple<T, B, L>>where
T: Clone,
B: Clone,
L: Clone,
V: Vocabulary<Iri = T, BlankId = B, Literal = L> + VocabularyMut,
Produces the next triple, allocating blank node identifiers as needed.
Auto Trait Implementations§
impl<'a, T, B, L> Freeze for CompoundValueTriples<'a, T, B, L>
impl<'a, T, B, L> RefUnwindSafe for CompoundValueTriples<'a, T, B, L>
impl<'a, T, B, L> Send for CompoundValueTriples<'a, T, B, L>
impl<'a, T, B, L> Sync for CompoundValueTriples<'a, T, B, L>
impl<'a, T, B, L> Unpin for CompoundValueTriples<'a, T, B, L>
impl<'a, T, B, L> UnsafeUnpin for CompoundValueTriples<'a, T, B, L>
impl<'a, T, B, L> UnwindSafe for CompoundValueTriples<'a, T, B, L>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> BorrowUnordered for T
impl<T> BorrowUnordered for T
Source§fn as_unordered(&self) -> &Unordered<T>
fn as_unordered(&self) -> &Unordered<T>
Views this value as an
Unordered reference.