pub struct FunctionalPartitioner<S, PF, MF>where
S: PlanningSolution,
PF: Fn(&S) -> Vec<S> + Send + Sync,
MF: Fn(&S, Vec<S>) -> S + Send + Sync,{ /* private fields */ }Expand description
A simple partitioner that creates a specified number of partitions.
This is a reference implementation that can be customized via closures for the actual partitioning and merging logic.
Implementations§
Source§impl<S, PF, MF> FunctionalPartitioner<S, PF, MF>
impl<S, PF, MF> FunctionalPartitioner<S, PF, MF>
Sourcepub fn with_recommended_count(self, count: usize) -> Self
pub fn with_recommended_count(self, count: usize) -> Self
Sets the recommended partition count.
Trait Implementations§
Source§impl<S, PF, MF> Debug for FunctionalPartitioner<S, PF, MF>
impl<S, PF, MF> Debug for FunctionalPartitioner<S, PF, MF>
Source§impl<S, PF, MF> SolutionPartitioner<S> for FunctionalPartitioner<S, PF, MF>
impl<S, PF, MF> SolutionPartitioner<S> for FunctionalPartitioner<S, PF, MF>
Auto Trait Implementations§
impl<S, PF, MF> Freeze for FunctionalPartitioner<S, PF, MF>
impl<S, PF, MF> RefUnwindSafe for FunctionalPartitioner<S, PF, MF>
impl<S, PF, MF> Send for FunctionalPartitioner<S, PF, MF>
impl<S, PF, MF> Sync for FunctionalPartitioner<S, PF, MF>
impl<S, PF, MF> Unpin for FunctionalPartitioner<S, PF, MF>
impl<S, PF, MF> UnwindSafe for FunctionalPartitioner<S, PF, MF>
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