pub struct PartitionDecider { /* private fields */ }Expand description
Partition decision maker.
Implementations§
Source§impl PartitionDecider
impl PartitionDecider
Sourcepub const fn with_split_threshold(self, threshold: f32) -> Self
pub const fn with_split_threshold(self, threshold: f32) -> Self
Sets the split threshold.
Sourcepub fn decide_split(
&self,
unsplit_result: &PartitionDecision,
split_results: &[PartitionDecision],
ctx: &PartitionContext,
) -> SplitDecision
pub fn decide_split( &self, unsplit_result: &PartitionDecision, split_results: &[PartitionDecision], ctx: &PartitionContext, ) -> SplitDecision
Decides whether to split a block.
Sourcepub fn can_early_terminate(&self, result: &PartitionDecision) -> bool
pub fn can_early_terminate(&self, result: &PartitionDecision) -> bool
Checks for early termination (no need to try smaller partitions).
Trait Implementations§
Source§impl Clone for PartitionDecider
impl Clone for PartitionDecider
Source§fn clone(&self) -> PartitionDecider
fn clone(&self) -> PartitionDecider
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 PartitionDecider
impl Debug for PartitionDecider
Source§impl Default for PartitionDecider
impl Default for PartitionDecider
Source§fn default() -> PartitionDecider
fn default() -> PartitionDecider
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PartitionDecider
impl RefUnwindSafe for PartitionDecider
impl Send for PartitionDecider
impl Sync for PartitionDecider
impl Unpin for PartitionDecider
impl UnsafeUnpin for PartitionDecider
impl UnwindSafe for PartitionDecider
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