Skip to main content

vecdb/traits/
any_exportable.rs

1use super::{AnySerializableVec, AnyVecWithWriter};
2
3/// Type-erased trait for vectors that are both writable and serializable.
4/// This trait is automatically implemented for any type that implements both
5/// `AnyVecWithWriter` and `AnySerializableVec`.
6pub trait AnyExportableVec: AnyVecWithWriter + AnySerializableVec {}
7
8/// Blanket implementation for all types that implement both traits.
9impl<V> AnyExportableVec for V where V: AnyVecWithWriter + AnySerializableVec {}