diff --git a/src/db.rs b/src/db.rs index 9ed4679..d7b26f4 100644 --- a/src/db.rs +++ b/src/db.rs @@ -1769,6 +1769,13 @@ impl Deref for DBVector { } } +impl AsRef<[u8]> for DBVector { + fn as_ref(&self) -> &[u8] { + // Implement this via Deref so as not to repeat ourselves + &*self + } +} + impl Drop for DBVector { fn drop(&mut self) { unsafe {