vecdb 0.10.1

High-performance mutable persistent vectors built on rawdb
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use zerocopy::{FromBytes, Immutable, IntoBytes, KnownLayout};

use crate::VecValue;

/// Value trait for ZeroCopyVec.
/// Extends RawVecValue with zerocopy bounds for direct memory mapping.
pub trait ZeroCopyVecValue
where
    Self: VecValue + FromBytes + IntoBytes + Immutable + KnownLayout,
{
}

impl<T> ZeroCopyVecValue for T where T: VecValue + FromBytes + IntoBytes + Immutable + KnownLayout {}