vecdb 0.10.2

High-performance mutable persistent vectors built on rawdb
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use pco::data_types::Number;

/// Witnesses that `Self` has the same memory layout as `T`, enabling the
/// zero-copy cast between `[Self]` and `[T::NumberType]` used by pco's encoder.
pub trait TransparentPco<T> {}

/// Binds a vec value type to its underlying pco `Number` representation.
pub trait Pco
where
    Self: TransparentPco<Self::NumberType>,
{
    type NumberType: Number;
}