pub struct PropagateOptions {
pub target_bucket_len: usize,
pub min_buckets: usize,
}Expand description
Tuning knobs for propagate_with; Default is what propagate uses.
Fields§
§target_bucket_len: usizeTerms per bucket the per-layer partition targets.
Above the min_buckets floor raising this alone does nothing; both fields must move together to get fewer buckets, and rebucketing is grow-only, so lowering either mid-run never coarsens a partition.
At least 1 (validate).
min_buckets: usizeFloor on the per-layer bucket count once the sum is worth splitting.
At least 16, so a sum of at most 1024 terms keeps one bucket (validate).
Implementations§
Trait Implementations§
Source§impl Clone for PropagateOptions
impl Clone for PropagateOptions
Source§fn clone(&self) -> PropagateOptions
fn clone(&self) -> PropagateOptions
Returns a duplicate of the value. Read more
1.0.0 · 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 PropagateOptions
impl Debug for PropagateOptions
Source§impl Default for PropagateOptions
impl Default for PropagateOptions
Source§impl PartialEq for PropagateOptions
impl PartialEq for PropagateOptions
impl Copy for PropagateOptions
impl Eq for PropagateOptions
impl StructuralPartialEq for PropagateOptions
Auto Trait Implementations§
impl Freeze for PropagateOptions
impl RefUnwindSafe for PropagateOptions
impl Send for PropagateOptions
impl Sync for PropagateOptions
impl Unpin for PropagateOptions
impl UnwindSafe for PropagateOptions
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
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