vecdb 0.10.2

High-performance mutable persistent vectors built on rawdb
Documentation
use crate::{AnyVec, VecIndex, VecValue, Version, short_type_name};

use super::LazyAggVec;

impl<I, O, S1I, S2T, S1T, Strat> AnyVec for LazyAggVec<I, O, S1I, S2T, S1T, Strat>
where
    I: VecIndex,
    O: VecValue,
    S1I: VecIndex,
    S2T: VecValue,
    S1T: VecValue,
    Strat: 'static,
{
    fn version(&self) -> Version {
        self.version + self.source.version() + self.mapping_version
    }

    fn name(&self) -> &str {
        &self.name
    }

    fn index_type_to_string(&self) -> &'static str {
        I::to_string()
    }

    fn len(&self) -> usize {
        (self.mapping)().len()
    }

    #[inline]
    fn value_type_to_size_of(&self) -> usize {
        size_of::<O>()
    }

    #[inline]
    fn value_type_to_string(&self) -> &'static str {
        short_type_name::<O>()
    }

    #[inline]
    fn region_names(&self) -> Vec<String> {
        vec![]
    }
}