use super::StorageError;

/// A boxed iterator over key-value pairs from a prefix scan.
///
/// Each item is a `Result<(key, value), StorageError>`.
/// The iterator yields entries in lexicographic key order.
pub type PrefixIterator<'a> =
    Box<dyn Iterator<Item = Result<(Vec<u8>, Vec<u8>), StorageError>> + 'a>;
