pub struct CompositeAll<T> { /* private fields */ }Expand description
Stop the algorithm if ALL stop checkers returns true
Implementations§
Source§impl<T> CompositeAll<T>
impl<T> CompositeAll<T>
Sourcepub fn new(stop_checkers: Vec<Box<dyn StopChecker<T>>>) -> Self
pub fn new(stop_checkers: Vec<Box<dyn StopChecker<T>>>) -> Self
Constructor
Trait Implementations§
Source§impl<T> StopChecker<T> for CompositeAll<T>
impl<T> StopChecker<T> for CompositeAll<T>
Source§fn can_stop(&mut self, state: &dyn AlgorithmState<T>) -> bool
fn can_stop(&mut self, state: &dyn AlgorithmState<T>) -> bool
The method must return true if algorithm must be stopped.
Auto Trait Implementations§
impl<T> Freeze for CompositeAll<T>
impl<T> !RefUnwindSafe for CompositeAll<T>
impl<T> !Send for CompositeAll<T>
impl<T> !Sync for CompositeAll<T>
impl<T> Unpin for CompositeAll<T>
impl<T> UnsafeUnpin for CompositeAll<T>
impl<T> !UnwindSafe for CompositeAll<T>
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