pub struct TerminationBuilder;Expand description
Builder for constructing termination conditions from configuration.
Implementations§
Source§impl TerminationBuilder
impl TerminationBuilder
Sourcepub fn build<S: PlanningSolution>(
config: &TerminationConfig,
) -> Option<Box<dyn Termination<S>>>
pub fn build<S: PlanningSolution>( config: &TerminationConfig, ) -> Option<Box<dyn Termination<S>>>
Builds a termination condition from configuration.
Multiple termination conditions are combined with OR logic (any condition being met will terminate solving).
Sourcepub fn build_and<S: PlanningSolution>(
config: &TerminationConfig,
) -> Option<Box<dyn Termination<S>>>
pub fn build_and<S: PlanningSolution>( config: &TerminationConfig, ) -> Option<Box<dyn Termination<S>>>
Builds a termination condition that requires ALL conditions to be met.
Sourcepub fn best_score<S, Sc>(target: Sc) -> Box<dyn Termination<S>>where
S: PlanningSolution<Score = Sc>,
Sc: Score,
pub fn best_score<S, Sc>(target: Sc) -> Box<dyn Termination<S>>where
S: PlanningSolution<Score = Sc>,
Sc: Score,
Creates a termination that stops when best score reaches a target.
Auto Trait Implementations§
impl Freeze for TerminationBuilder
impl RefUnwindSafe for TerminationBuilder
impl Send for TerminationBuilder
impl Sync for TerminationBuilder
impl Unpin for TerminationBuilder
impl UnwindSafe for TerminationBuilder
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