vecdb 0.10.2

High-performance mutable persistent vectors built on rawdb
Documentation
1
2
3
4
5
6
7
8
9
use super::{AnySerializableVec, AnyVecWithWriter};

/// Type-erased trait for vectors that are both writable and serializable.
/// This trait is automatically implemented for any type that implements both
/// `AnyVecWithWriter` and `AnySerializableVec`.
pub trait AnyExportableVec: AnyVecWithWriter + AnySerializableVec {}

/// Blanket implementation for all types that implement both traits.
impl<V> AnyExportableVec for V where V: AnyVecWithWriter + AnySerializableVec {}