use crate::{table::*, DatabaseError}; /// A key-value pair for table `T`. pub type KeyValue = (::Key, ::Value); /// A fallible key-value pair that may or may not exist. /// /// The `Result` represents that the operation might fail, while the `Option` represents whether or /// not the entry exists. pub type PairResult = Result>, DatabaseError>; /// A key-value pair coming from an iterator. /// /// The `Result` represents that the operation might fail, while the `Option` represents whether or /// not there is another entry. pub type IterPairResult = Option, DatabaseError>>; /// A value only result for table `T`. pub type ValueOnlyResult = Result::Value>, DatabaseError>;