pub struct ListTriples<'a, T, B, L> { /* 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> ListTriples<'a, T, B, L>
impl<'a, T, B, L> ListTriples<'a, T, B, L>
pub fn new( list: &'a [Indexed<Object<T, B>>], head_ref: Id<T, B>, ) -> ListTriples<'a, T, B, L>
pub fn with<'n, V, G>(
self,
vocabulary: &'n mut V,
generator: G,
rdf_direction: Option<RdfDirection>,
) -> ListTriplesWith<'a, 'n, V, G> ⓘwhere
V: Vocabulary<Iri = T, BlankId = B, Literal = L>,
G: Generator<V>,
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
G: Generator<V>,
T: Clone,
B: Clone,
L: Clone,
V: Vocabulary<Iri = T, BlankId = B, Literal = L> + IriVocabularyMut + LiteralVocabularyMut,
Auto Trait Implementations§
impl<'a, T, B, L> Freeze for ListTriples<'a, T, B, L>
impl<'a, T, B, L> RefUnwindSafe for ListTriples<'a, T, B, L>
impl<'a, T, B, L> Send for ListTriples<'a, T, B, L>
impl<'a, T, B, L> Sync for ListTriples<'a, T, B, L>
impl<'a, T, B, L> Unpin for ListTriples<'a, T, B, L>
impl<'a, T, B, L> UnwindSafe for ListTriples<'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