The return type of Graph::triples is Box<dyn Iterator<...>>. We could get rid of the Box and the dynamic dispatch by changing it to impl Iterator<...>. The same applies, of course, to Datatype::quads, Graph::triples_matching, and a number of other iterator-returning methods.
The return type of
Graph::triples
isBox<dyn Iterator<...>>
. We could get rid of the Box and the dynamic dispatch by changing it toimpl Iterator<...>
. The same applies, of course, toDatatype::quads
,Graph::triples_matching
, and a number of other iterator-returning methods.