pub struct MutableOptions {
pub max_pts: usize,
pub slack: f64,
pub dead_trigger: f64,
pub repair_ld: usize,
pub repair_c: usize,
pub build_codes: Option<bool>,
}Expand description
Knobs of a MutableBase, named as in section 2.7 of the design note.
Fields§
§max_pts: usizeThe most points the caller will hold live at once (max_pts).
slack: f64Extra slots as a fraction of max_pts; capacity is ceil(max_pts * (1 + slack)).
dead_trigger: f64Run a repair scan after a delete once dead slots are at least this fraction of the allocated (live plus dead) slots. 0 scans only when an insert needs slots.
repair_ld: usizeIn-neighbour recovery on delete: list size of the search for the deleted vector. 0 is off; other values are rejected until the bounded recovery exists.
repair_c: usizeIn-neighbour recovery: live out-neighbours of the deleted slot added per hit.
build_codes: Option<bool>Screen construction distances with 8-bit codes. None follows the build: on from
128 dimensions.
Implementations§
Trait Implementations§
Source§impl Clone for MutableOptions
impl Clone for MutableOptions
Auto Trait Implementations§
impl Freeze for MutableOptions
impl RefUnwindSafe for MutableOptions
impl Send for MutableOptions
impl Sync for MutableOptions
impl Unpin for MutableOptions
impl UnsafeUnpin for MutableOptions
impl UnwindSafe for MutableOptions
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<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.