Struct trie_db::triedb::SuspendedTrieDBKeyIterator
source · [−]pub struct SuspendedTrieDBKeyIterator<L: TrieLayout> { /* private fields */ }
Expand description
When there is guaranties the storage backend do not change, this can be use to suspend and restore the iterator.
Implementations
pub fn unsafe_restore<'a>(
self,
db: &'a TrieDB<'a, L>
) -> TrieDBKeyIterator<'a, L>ⓘNotable traits for TrieDBKeyIterator<'a, L>impl<'a, L: TrieLayout> Iterator for TrieDBKeyIterator<'a, L> type Item = TrieKeyItem<'a, TrieHash<L>, CError<L>>;
pub fn unsafe_restore<'a>(
self,
db: &'a TrieDB<'a, L>
) -> TrieDBKeyIterator<'a, L>ⓘNotable traits for TrieDBKeyIterator<'a, L>impl<'a, L: TrieLayout> Iterator for TrieDBKeyIterator<'a, L> type Item = TrieKeyItem<'a, TrieHash<L>, CError<L>>;
Notable traits for TrieDBKeyIterator<'a, L>
impl<'a, L: TrieLayout> Iterator for TrieDBKeyIterator<'a, L> type Item = TrieKeyItem<'a, TrieHash<L>, CError<L>>;
Restore iterator.