pub struct AnnSpec {
pub dim: u32,
pub distance: u8,
pub m: u16,
pub ef: u16,
}Expand description
v2.8 — HNSW declaration (immutable once created; RFC D2).
Fields§
§dim: u32Vector dimensionality (field bytes must be dim×4 f32 LE).
distance: u80=cosine 1=l2 2=ip (kevy-vector’s Distance tags).
m: u16Max links per node per layer.
ef: u16Construction beam width.
Trait Implementations§
impl Copy for AnnSpec
impl Eq for AnnSpec
impl StructuralPartialEq for AnnSpec
Auto Trait Implementations§
impl Freeze for AnnSpec
impl RefUnwindSafe for AnnSpec
impl Send for AnnSpec
impl Sync for AnnSpec
impl Unpin for AnnSpec
impl UnsafeUnpin for AnnSpec
impl UnwindSafe for AnnSpec
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