Closed sr-gi closed 1 year ago
Currently the DBM methods related to loading data return Result<T, E> where E is always dbm::Error::NotFound. It may make more sense to get rit of NotFound from the Errors enum and make the load functions return Option<T>.
DBM
Result<T, E>
E
dbm::Error::NotFound
NotFound
Errors
Option<T>
@SpoonBuoy just realized this may be relevant to your current work.
Currently the
DBM
methods related to loading data returnResult<T, E>
whereE
is alwaysdbm::Error::NotFound
. It may make more sense to get rit ofNotFound
from theErrors
enum and make the load functions returnOption<T>
.