#[non_exhaustive]pub enum VectorAccessorKind<'a> {
Property(PropertyVectorAccessor<'a>),
Spilled(SpillableVectorAccessor<'a>),
}Expand description
An accessor that dispatches to either a property store or a spill-backed store.
This enum avoids dynamic dispatch (Box<dyn VectorAccessor>) so it can be
passed to HnswIndex::search(&impl VectorAccessor) without requiring Sized
workarounds.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Property(PropertyVectorAccessor<'a>)
Direct property store lookup (default, no spill).
Spilled(SpillableVectorAccessor<'a>)
Spill-backed: checks MmapStorage first, falls back to property store.
Trait Implementations§
Source§impl VectorAccessor for VectorAccessorKind<'_>
impl VectorAccessor for VectorAccessorKind<'_>
Auto Trait Implementations§
impl<'a> Freeze for VectorAccessorKind<'a>
impl<'a> !RefUnwindSafe for VectorAccessorKind<'a>
impl<'a> Send for VectorAccessorKind<'a>
impl<'a> Sync for VectorAccessorKind<'a>
impl<'a> Unpin for VectorAccessorKind<'a>
impl<'a> UnsafeUnpin for VectorAccessorKind<'a>
impl<'a> !UnwindSafe for VectorAccessorKind<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more