pub trait Vectors {
// Required method
fn get(&self, id: u64, into: &mut [f32]) -> bool;
}Expand description
Where the full precision vectors live.
A real collection answers this out of the record log, which already holds the vector at an address the id resolves to. A test answers it out of a map. Either way the index itself never stores a raw vector, which is the whole point of quantising one.
Required Methods§
Sourcefn get(&self, id: u64, into: &mut [f32]) -> bool
fn get(&self, id: u64, into: &mut [f32]) -> bool
Write the vector id stands for into into and say so, or say that the
id is gone.
An id that is gone is dropped from the index the next time maintenance walks over it, so a collection that deletes from the log without telling the index heals rather than lying.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".