pub struct PQStats {
pub dim: usize,
pub num_subspaces: usize,
pub num_centroids: usize,
pub subspace_dim: usize,
pub codebook_size_bytes: usize,
pub code_size_bytes: usize,
pub compression_ratio: f32,
}Expand description
Statistics about a ProductQuantizer
Fields§
§dim: usize§num_subspaces: usize§num_centroids: usize§subspace_dim: usize§codebook_size_bytes: usize§code_size_bytes: usize§compression_ratio: f32Trait Implementations§
Auto Trait Implementations§
impl Freeze for PQStats
impl RefUnwindSafe for PQStats
impl Send for PQStats
impl Sync for PQStats
impl Unpin for PQStats
impl UnwindSafe for PQStats
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more