Skip to main content

Stored

Trait Stored 

Source
pub trait Stored {
    // Required method
    fn get(&self, key: &[u8], into: &mut [f32]) -> bool;
}
Expand description

Where the full precision vectors come back from when an image is loaded.

The engine answers this out of the record log. A test answers it out of a map. Either way it is asked once per key in the image and never again, and what it gives back has to be the stored form: see the note at the top of this module about cosine.

Required Methods§

Source

fn get(&self, key: &[u8], into: &mut [f32]) -> bool

Write the vector stored under key into into and say so, or say that the key is gone.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§