Struct json_ld::rdf::ListTriples
source · [−]pub struct ListTriples<'a, T, B, 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
sourceimpl<'a, T, B, M> ListTriples<'a, T, B, M>
impl<'a, T, B, M> ListTriples<'a, T, B, M>
pub fn new(
list: &'a [Meta<Indexed<Object<T, B, M>, M>, M>],
head_ref: Subject<T, B>
) -> ListTriples<'a, T, B, M>
pub fn with<V, G>(
self,
vocabulary: &'n mut V,
generator: G,
rdf_direction: Option<RdfDirection>
) -> ListTriplesWith<'a, 'n, V, M, G>ⓘNotable traits for ListTriplesWith<'a, 'n, N, M, G>impl<'a, 'n, N, M, G> Iterator for ListTriplesWith<'a, 'n, N, M, G>where
N: Vocabulary + IriVocabularyMut,
G: MetaGenerator<N, M>,
<N as IriVocabulary>::Iri: AsIri + Clone,
<N as BlankIdVocabulary>::BlankId: Clone, type Item = Triple<Subject<<N as IriVocabulary>::Iri, <N as BlankIdVocabulary>::BlankId>, Subject<<N as IriVocabulary>::Iri, <N as BlankIdVocabulary>::BlankId>, Value<<N as IriVocabulary>::Iri, <N as BlankIdVocabulary>::BlankId>>;
where
V: Vocabulary<Iri = T, BlankId = B>,
G: MetaGenerator<V, M>,
N: Vocabulary + IriVocabularyMut,
G: MetaGenerator<N, M>,
<N as IriVocabulary>::Iri: AsIri + Clone,
<N as BlankIdVocabulary>::BlankId: Clone, type Item = Triple<Subject<<N as IriVocabulary>::Iri, <N as BlankIdVocabulary>::BlankId>, Subject<<N as IriVocabulary>::Iri, <N as BlankIdVocabulary>::BlankId>, Value<<N as IriVocabulary>::Iri, <N as BlankIdVocabulary>::BlankId>>;
pub fn next<V, G>(
&mut self,
vocabulary: &mut V,
generator: &mut G,
rdf_direction: Option<RdfDirection>
) -> Option<Triple<Subject<T, B>, Subject<T, B>, Value<T, B>>>where
V: Vocabulary<Iri = T, BlankId = B> + IriVocabularyMut,
G: MetaGenerator<V, M>,
T: Clone,
B: Clone,
Auto Trait Implementations
impl<'a, T, B, M> RefUnwindSafe for ListTriples<'a, T, B, M>where
B: RefUnwindSafe,
M: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T, B, M> Send for ListTriples<'a, T, B, M>where
B: Send + Sync,
M: Sync,
T: Send + Sync,
impl<'a, T, B, M> Sync for ListTriples<'a, T, B, M>where
B: Sync,
M: Sync,
T: Sync,
impl<'a, T, B, M> Unpin for ListTriples<'a, T, B, M>where
B: Unpin,
T: Unpin,
impl<'a, T, B, M> UnwindSafe for ListTriples<'a, T, B, M>where
B: UnwindSafe + RefUnwindSafe,
M: RefUnwindSafe,
T: UnwindSafe + RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more