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§
Required Methods§
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.