pub struct PQGenerationContext<'a, Storage, Pool>{
pub pq_storage: PQStorage,
pub num_chunks: usize,
pub seed: Option<u64>,
pub p_val: f64,
pub storage_provider: &'a Storage,
pub pool: Pool,
pub metric: Metric,
pub dim: usize,
pub max_kmeans_reps: usize,
pub num_centers: usize,
}Fields§
§pq_storage: PQStorage§num_chunks: usize§seed: Option<u64>§p_val: f64§storage_provider: &'a Storage§pool: Pool§metric: Metric§dim: usize§max_kmeans_reps: usize§num_centers: usizeAuto Trait Implementations§
impl<'a, Storage, Pool> Freeze for PQGenerationContext<'a, Storage, Pool>where
Pool: Freeze,
impl<'a, Storage, Pool> RefUnwindSafe for PQGenerationContext<'a, Storage, Pool>where
Pool: RefUnwindSafe,
Storage: RefUnwindSafe,
impl<'a, Storage, Pool> Send for PQGenerationContext<'a, Storage, Pool>
impl<'a, Storage, Pool> Sync for PQGenerationContext<'a, Storage, Pool>
impl<'a, Storage, Pool> Unpin for PQGenerationContext<'a, Storage, Pool>where
Pool: Unpin,
impl<'a, Storage, Pool> UnsafeUnpin for PQGenerationContext<'a, Storage, Pool>where
Pool: UnsafeUnpin,
impl<'a, Storage, Pool> UnwindSafe for PQGenerationContext<'a, Storage, Pool>where
Pool: UnwindSafe,
Storage: RefUnwindSafe,
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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