pub trait LoadCodebook<T> {
    // Required method
    fn load_codebook<'life0, 'async_trait>(
        &'life0 self,
        index: usize
    ) -> Pin<Box<dyn Future<Output = Result<BlockVectorSet<T>, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Capability of loading a single codebook.

Supposed to be specialized for a specific Database.

Required Methods§

source

fn load_codebook<'life0, 'async_trait>( &'life0 self, index: usize ) -> Pin<Box<dyn Future<Output = Result<BlockVectorSet<T>, Error>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Loads a specified codebook of the database.

Fails if index is out of bounds.

Implementors§

source§

impl<FS> LoadCodebook<f32> for Database<f32, FS>where FS: FileSystem + Send + Sync,