VectorStore

Trait VectorStore 

Source
pub trait VectorStore: 'static {
    type Accessor<'a>: VectorAccessor + 'a
       where Self: 'a;
    type Ctx: 'static;
    type Err;

    // Required method
    async fn get_vector(
        &self,
        idx: usize,
        ctx: &mut Self::Ctx,
    ) -> Result<Self::Accessor<'_>, Self::Err>;
}

Required Associated Types§

Source

type Accessor<'a>: VectorAccessor + 'a where Self: 'a

Source

type Ctx: 'static

Source

type Err

Required Methods§

Source

async fn get_vector( &self, idx: usize, ctx: &mut Self::Ctx, ) -> Result<Self::Accessor<'_>, Self::Err>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§