Struct json_ld::rdf::ListTriples
source · pub struct ListTriples<'a, T, B, L, M> { /* private fields */ }
Expand description
Iterator over the RDF quads generated from a list of JSON-LD objects.
If the list contains nested lists, the iterator will also emit quads for those nested lists.
Implementations§
source§impl<'a, T, B, L, M> ListTriples<'a, T, B, L, M>
impl<'a, T, B, L, M> ListTriples<'a, T, B, L, M>
pub fn new( list: &'a [Meta<Indexed<Object<T, B, M>, M>, M>], head_ref: Id<T, B> ) -> ListTriples<'a, T, B, L, M>
pub fn with<V, G, 'n>(
self,
vocabulary: &'n mut V,
generator: G,
rdf_direction: Option<RdfDirection>
) -> ListTriplesWith<'a, 'n, V, M, G> ⓘwhere
V: Vocabulary<Iri = T, BlankId = B, Literal = L> + LanguageTagVocabulary,
G: MetaGenerator<V, M>,
pub fn next<V, G>(
&mut self,
vocabulary: &mut V,
generator: &mut G,
rdf_direction: Option<RdfDirection>
) -> Option<Triple<Id<T, B>, Id<T, B>, Term<Id<T, B>, L>>>where
V: Vocabulary<Iri = T, BlankId = B, Literal = L, Type = Type<<V as IriVocabulary>::Iri, <V as LanguageTagVocabulary>::LanguageTag>, Value = String> + IriVocabularyMut + LanguageTagVocabularyMut + LiteralVocabularyMut,
G: MetaGenerator<V, M>,
T: Clone,
B: Clone,
L: Clone,
Auto Trait Implementations§
impl<'a, T, B, L, M> RefUnwindSafe for ListTriples<'a, T, B, L, M>
impl<'a, T, B, L, M> Send for ListTriples<'a, T, B, L, M>
impl<'a, T, B, L, M> Sync for ListTriples<'a, T, B, L, M>
impl<'a, T, B, L, M> Unpin for ListTriples<'a, T, B, L, M>
impl<'a, T, B, L, M> UnwindSafe for ListTriples<'a, T, B, L, M>where
B: UnwindSafe + RefUnwindSafe,
L: UnwindSafe + RefUnwindSafe,
M: RefUnwindSafe,
T: UnwindSafe + RefUnwindSafe,
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