reth_trie/
mock.rs

1/// The key visit.
2#[derive(Debug, Clone, PartialEq, Eq)]
3pub struct KeyVisit<T> {
4    /// The type of key visit.
5    pub visit_type: KeyVisitType<T>,
6    /// The key that was visited, if found.
7    pub visited_key: Option<T>,
8}
9
10/// The type of key visit.
11#[derive(Debug, Clone, PartialEq, Eq)]
12pub enum KeyVisitType<T> {
13    /// Seeked exact key.
14    SeekExact(T),
15    /// Seeked non-exact key, returning the next key if no exact match found.
16    SeekNonExact(T),
17    /// Next key.
18    Next,
19}