pchampin / sophia_rs

Sophia: a Rust toolkit for RDF and Linked Data
Other
210 stars 23 forks source link

Get rid of boxed iterators #163

Closed pchampin closed 4 months ago

pchampin commented 4 months ago

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.