/// Iterate messages between min and max HeightKey (inclusive).
///
/// It is parameteriazed by an individual message type as long as it can be
/// casted from the main `Artifact::Message` type.
Iterate messages between min and max HeightKey (inclusive).
It is parameteriazed by an individual message type as long as it can be
casted from the main `Artifact::Message` type.
Iterate messages between min and max HeightKey ( inclusive ) . It is parameteriazed by an individual message type as long as it can be casted from the main ` Artifact :: Message ` type .
fn iterate<Message: TryFrom<Artifact> + HasTypeKey + 'static>(
        &self,
        min_key: HeightKey,
        max_key: HeightKey,
    ) -> Box<dyn Iterator<Item = Message>> {
        let type_key = Message::type_key();
        let index_db = self.get_index_db(&type_key);
        let db_env = self.db_env.clone();
        let log = self.log.clone();
        let artifacts = self.artifacts;
        Box::new(LMDBIterator::new(
            db_env.clone(),
            index_db,
            min_key,
            max_key,
            move |tx: &RoTransaction<'_>, key: &[u8]| {
                Artifact::load_as::<Message>(&IdKey::from(key), db_env.clone(), artifacts, tx, &log)
            },
            self.log.clone(),
        ))
    }
fn iterate < Message : TryFrom < Artifact > + HasTypeKey + ' static > ( & self , min_key : HeightKey , max_key : HeightKey , ) -> Box < dyn Iterator < Item = Message > > { let type_key = Message :: type_key ( ) ; let index_db = self . get_index_db ( & type_key ) ; let db_env = self . db_env . clone ( ) ; let log = self . log . clone ( ) ; let artifacts = self . artifacts ; Box :: new ( LMDBIterator :: new ( db_env . clone ( ) , index_db , min_key , max_key , move | tx : & RoTransaction < ' _ > , key : & [ u8 ] | { Artifact :: load_as :: < Message > ( & IdKey :: from ( key ) , db_env . clone ( ) , artifacts , tx , & log ) } , self . log . clone ( ) , ) ) }
Iterate messages between min and max HeightKey (inclusive).
Iterate messages between min and max HeightKey ( inclusive ) .
&self
min_key
HeightKey
max_key
HeightKey