Function decode

pub fn decode<T>(
    res: Result<Option<(Cow<'_, [u8]>, Cow<'_, [u8]>)>, impl Into<DatabaseErrorInfo>>,
) -> Result<Option<(<T as Table>::Key, <T as Table>::Value)>, DatabaseError>
where T: Table, <T as Table>::Key: Decode, <T as Table>::Value: Decompress,
Available on crate features provider and mdbx only.
Expand description

Decodes a (key, value) pair from the database.