# Trait flechasdb::db::stored::LoadCodebook

source ·

    pub trait LoadCodebook<T> {
        // Required method
        fn load_codebook(&self, index: usize) -> Result<BlockVectorSet<T>, Error>;
    }

Expand description

Capability of loading a codebook.

Supposed to be specialized for a specific `Database`.

## Required Methods§

source

#### fn load_codebook(&self, index: usize) -> Result<BlockVectorSet<T>, Error>

Loads a codebook at a given index.

Fails if `index` is out of the bounds.

## Implementors§

source§

### impl<FS> LoadCodebook<f32> for Database<f32, FS>where FS: FileSystem,