pub struct PQCodebook { /* private fields */ }Expand description
Euclidean chunk centroids. Resident ownership retains its allocation allowance, independently of query cancellation.
Implementations§
Source§impl PQCodebook
impl PQCodebook
pub const CODEC_REVISION: u32 = 1
pub const TRAINING_REVISION: u32 = 1
pub fn dimensions(&self) -> usize
pub fn pq_bytes(&self) -> usize
pub fn centroid_count(&self) -> u16
pub fn training(&self) -> PQTrainingSummary
pub fn chunk_range(&self, chunk: usize) -> Option<Range<usize>>
Sourcepub fn chunk_centroids(&self, chunk: usize) -> Option<&[f64]>
pub fn chunk_centroids(&self, chunk: usize) -> Option<&[f64]>
Centroid-major coordinates for one contiguous chunk, using scalar f64 values.
pub fn encode( &self, vector: &NavigationVector, control: &StorageReadControl, ) -> StorageBackendResult<BudgetedVec<u8>>
pub fn lookup( &self, query: &NavigationVector, control: &StorageReadControl, ) -> StorageBackendResult<PQLookupTable>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PQCodebook
impl RefUnwindSafe for PQCodebook
impl Send for PQCodebook
impl Sync for PQCodebook
impl Unpin for PQCodebook
impl UnsafeUnpin for PQCodebook
impl UnwindSafe for PQCodebook
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