scylladb / cpp-rust-driver

API-compatible rewrite of https://github.com/scylladb/cpp-driver as a wrapper for Rust driver.
GNU Lesser General Public License v2.1
11 stars 11 forks source link

Parametrize iterators by lifetime #119

Open Gor027 opened 1 year ago

Gor027 commented 1 year ago

For now, all references in iterators have a 'static lifetime which sometimes requires casting them to pointers and back before setting in the iterator. The solution is to parameterize all iterator structs and enums which may also imply parametrizing CassRow, CassValue, etc.