pub struct HnswBuildLimits {
pub max_records: Option<usize>,
pub max_owned_bytes: Option<usize>,
pub max_distance_evaluations: Option<usize>,
pub worker_threads: usize,
pub max_encoded_graph_bytes: Option<usize>,
}Expand description
Hard bounds for one HNSW build.
Fields§
§max_records: Option<usize>§max_owned_bytes: Option<usize>§max_distance_evaluations: Option<usize>§worker_threads: usize§max_encoded_graph_bytes: Option<usize>Trait Implementations§
Source§impl Clone for HnswBuildLimits
impl Clone for HnswBuildLimits
Source§fn clone(&self) -> HnswBuildLimits
fn clone(&self) -> HnswBuildLimits
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HnswBuildLimits
impl Debug for HnswBuildLimits
Source§impl Default for HnswBuildLimits
impl Default for HnswBuildLimits
impl Eq for HnswBuildLimits
Source§impl PartialEq for HnswBuildLimits
impl PartialEq for HnswBuildLimits
impl StructuralPartialEq for HnswBuildLimits
Auto Trait Implementations§
impl Freeze for HnswBuildLimits
impl RefUnwindSafe for HnswBuildLimits
impl Send for HnswBuildLimits
impl Sync for HnswBuildLimits
impl Unpin for HnswBuildLimits
impl UnsafeUnpin for HnswBuildLimits
impl UnwindSafe for HnswBuildLimits
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