Trait KeyDecodeOwned
Source pub trait KeyDecodeOwned: for<'a> KeyDecode<'a> {
// Provided method
fn decode_from_vec(bytes: Vec<u8>) -> Result<Self, Error>
where Self: Sized { ... }
}
Decode the key from an owned vector.
A lot of kv query methods return vectors for keys, which some key types might be able to
use to more effeciently decode the data.
The default implementation just calls decode