pub struct RepairParams {
pub k: usize,
pub ef: usize,
pub extra_degree: usize,
pub failure_edges: bool,
pub antihub_in_degree: usize,
pub entry_points: usize,
pub random_targets: bool,
pub seed: u64,
}Fields§
§k: usizeResult depth whose misses are repaired (1..=n).
ef: usizeBeam width at which train queries are searched for misses (at least k).
extra_degree: usizeSlots added to every list’s capacity; 0 only fills slots the build left empty, so fixed-width encodings keep their size.
failure_edges: boolAdd edges toward the missed true neighbours of failing train queries.
antihub_in_degree: usizeGive every vertex with fewer in-edges than this some from its out-neighbours; 0 is off.
entry_points: usizeReplace the upper layers with one complete layer over this many k-means medoids; 0 keeps the build’s layers.
random_targets: boolMatched control: keep every planned edge’s source (so per-vertex counts, capacity and memory are identical) but point it at a seeded random vertex instead.
seed: u64Trait Implementations§
Source§impl Clone for RepairParams
impl Clone for RepairParams
Source§impl Debug for RepairParams
impl Debug for RepairParams
Source§impl Default for RepairParams
impl Default for RepairParams
Source§impl PartialEq for RepairParams
impl PartialEq for RepairParams
Source§impl Serialize for RepairParams
impl Serialize for RepairParams
impl StructuralPartialEq for RepairParams
Auto Trait Implementations§
impl Freeze for RepairParams
impl RefUnwindSafe for RepairParams
impl Send for RepairParams
impl Sync for RepairParams
impl Unpin for RepairParams
impl UnsafeUnpin for RepairParams
impl UnwindSafe for RepairParams
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.