Allow DBIterator to be converted into DBRawIterator

master
Karl Hobley 8 years ago
parent 1270e572d0
commit d9725bcff9
  1. 6
      src/db.rs

@ -514,6 +514,12 @@ impl Iterator for DBIterator {
}
}
impl Into<DBRawIterator> for DBIterator {
fn into(self) -> DBRawIterator {
self.raw
}
}
impl<'a> Snapshot<'a> {
pub fn new(db: &DB) -> Snapshot {
let snapshot = unsafe { ffi::rocksdb_create_snapshot(db.inner) };

Loading…
Cancel
Save