/// Return a new iterator that will iterator through DB objects between
/// min_key and max_key (inclusive) that are deserialized using the
/// given deserialize function.
Return a new iterator that will iterator through DB objects between
min_key and max_key (inclusive) that are deserialized using the
given deserialize function.
Return a new iterator that will iterator through DB objects between min_key and max_key ( inclusive ) that are deserialized using the given deserialize function .
pub fn new(
        db_env: Arc<Environment>,
        db: Database,
        min_key: HeightKey,
        max_key: HeightKey,
        deserialize: F,
        log: ReplicaLogger,
    ) -> Self {
        let tx: RoTransaction<'_> = unsafe { std::mem::transmute(db_env.begin_ro_txn().unwrap()) };
        let mut cursor: RoCursor<'_> =
            unsafe { std::mem::transmute(tx.open_ro_cursor(db).unwrap()) };
        let iter: Iter<'_> = unsafe { std::mem::transmute(cursor.iter_from(min_key)) };
        Self {
            log,
            db_env,
            tx,
            cursor,
            iter: Some(iter),
            max_key,
            deserialize,
        }
    }
pub fn new ( db_env : Arc < Environment > , db : Database , min_key : HeightKey , max_key : HeightKey , deserialize : F , log : ReplicaLogger , ) -> Self { let tx : RoTransaction < ' _ > = unsafe { std :: mem :: transmute ( db_env . begin_ro_txn ( ) . unwrap ( ) ) } ; let mut cursor : RoCursor < ' _ > = unsafe { std :: mem :: transmute ( tx . open_ro_cursor ( db ) . unwrap ( ) ) } ; let iter : Iter < ' _ > = unsafe { std :: mem :: transmute ( cursor . iter_from ( min_key ) ) } ; Self { log , db_env , tx , cursor , iter : Some ( iter ) , max_key , deserialize , } }
Return a new iterator that will iterator through DB objects between
min_key and max_key (inclusive) that are deserialized using the
given deserialize function.
Return a new iterator that will iterator through DB objects between min_key and max_key ( inclusive ) that are deserialized using the given deserialize function .
db_env
Arc<Environment>
db
Database
min_key
HeightKey
max_key
HeightKey
deserialize
F
log
ReplicaLogger